[Webkit-unassigned] [Bug 76489] REGRESSION: WebGL doesn't show up in CSS reflections

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 2 08:48:18 PDT 2016


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

--- Comment #10 from Antoine Quint <graouts at webkit.org> ---
My current understanding of this issue is that reflections are updated to match their replicated layer's content in GraphicsLayerCA::layerDidDisplay where we iterate through the layer clones. There, we check whether the layer that displayed was the layer itself or its content layer. In the case of a <canvas> element using WebGL, we only get notifications for the layer, not the content layer. However, the content layer is the one which has its backing CALayer's contents set to the WebGLLayer's content, so without this notification the code doesn't update the content layer's clones.

I'm not sure why these notifications aren't fired.

As for <video> elements, their reflections work out due to specific work done in PlatformCALayerCocoa::clone to set the AVPlayer of the cloned layer (the replica) to the original layer (the replicated layer).

Not sure yet if we should add WebGL-specific code in PlatformCALayerCocoa::clone or get GraphicsLayerCA::layerDidDisplay to be called with the content layer of a GraphicsLayerCA backing a WebGL <canvas> element. My hunch is the latter, which should trigger once the WebGLLayer has been drawn.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160602/9d264900/attachment.html>


More information about the webkit-unassigned mailing list