[Webkit-unassigned] [Bug 231163] REGRESSION (iOS 15): Canvas Rendering feature leads to strange resize behaviour

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 16 21:44:20 PST 2021


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

--- Comment #8 from Cameron McCormack (:heycam) <heycam at apple.com> ---
So with that revised test:

* The page has a canvas.
* The canvas contents is an IOSurface-backed RemoteImageBuffer.
* The canvas element is composited, so has an IOSurface-backed layer.
* The page schedules 1 ms timer that:
    1. fills the canvas with a red rect
    2. changes canvas.height, which:
         * creates a new ImageBuffer for the canvas contents
         * flushes the old ImageBuffer since it gets derefed and destroyed
    3. calls rAF with a callback that fills the canvas with a green rect
* When updateRendering is called:
    * the current canvas contents ImageBuffer is flushed
    * the canvas contents ImageBuffer's IOSurface is copied into the canvas element layer ImageBuffer's IOSurface

And the result on the display is that sometimes the canvas appears red and sometimes green.

-- 
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/20211217/2eb40531/attachment-0001.htm>


More information about the webkit-unassigned mailing list