[chromium] GraphicsLayerChromium should use WebContentLayer directly
Created attachment 147695 [details] Patch
I'll have to land a chromium-side patch to ui/compositor/layer.cc to avoid compile breaking chromium - that's what the WEBCONTENTLAYERCLIENT_HAS_OPAQUE #define is for.
Comment on attachment 147695 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=147695&action=review > Source/Platform/chromium/public/WebContentLayerClient.h:42 > + // optimizations. To be clear, that's only used if !WebLayer.opaque(), right?
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
(In reply to comment #3) > (From update of attachment 147695 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=147695&action=review > > > Source/Platform/chromium/public/WebContentLayerClient.h:42 > > + // optimizations. > > To be clear, that's only used if !WebLayer.opaque(), right? It's ignored, right. We don't set it on opaque layers to avoid paying the overhead.
Comment on attachment 147695 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=147695&action=review R=me. > Source/WebKit/chromium/tests/CCOcclusionTrackerTest.cpp:138 > + layer->setIsDrawable(false); Isn't that the default value?
Comment on attachment 147695 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=147695&action=review >> Source/WebKit/chromium/tests/CCOcclusionTrackerTest.cpp:138 >> + layer->setIsDrawable(false); > > Isn't that the default value? Ooh, good point. This was a bad intermediate state from when I was playing with the default value - will revert before landing.
Committed r120643: <http://trac.webkit.org/changeset/120643>