[Webkit-unassigned] [Bug 256151] REGRESSION(261130 at main): Canvas putImageData draws onto wrong canvas

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 1 10:42:59 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=256151

Said Abou-Hallawa <sabouhallawa at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Canvas putImageData draws   |REGRESSION(261130 at main):
                   |onto wrong canvas           |Canvas putImageData draws
                   |                            |onto wrong canvas

--- Comment #3 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
This is a regression of 261130 at main. Commenting this if-statement in RemoteImageBufferProxy::putPixelBuffer() fixes the issue.

    if (canMapBackingStore()) {
        const_cast<RemoteImageBufferProxy&>(*this).flushDrawingContext();
        ImageBuffer::putPixelBuffer(pixelBuffer, srcRect, destPoint, destFormat);
        // Simulate a write so that read caches are cleared.
        // FIXME: This should not be done via the context draw, as that induces a flush.
        context().fillRect({ });
        return;
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230501/6398fdaa/attachment.htm>


More information about the webkit-unassigned mailing list