[chromium] Layers on main thread should get a RenderSurface for animating transform only if masksToBounds is true also
Created attachment 143400 [details] Patch
Comment on attachment 143400 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=143400&action=review > Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:-227 > - // On the main thread side, animating transforms are unknown, and may cause a RenderSurface on the impl side. > - // Since they are cheap, we create a rendersurface for all animating transforms to cover these cases, and so > - // that we can consider descendants as not animating relative to their target to aid culling. I don't think we have to dump the entire comment. Having the transformToParentIsKnown() bit explained is useful
Created attachment 143570 [details] Patch for landing
k! comment added.
Comment on attachment 143570 [details] Patch for landing Rejecting attachment 143570 [details] from commit-queue. New failing tests: CCLayerTreeHostCommonTest.verifyBackFaceCullingWithAnimatingTransforms Full output: http://queues.webkit.org/results/12774243
Created attachment 143577 [details] Archive of layout-test-results from ec2-cq-02 The attached test failures were seen while running run-webkit-tests on the commit-queue. Bot: ec2-cq-02 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Oof. Bad interaction with the backface change. diff --git a/Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp b/Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp index 5c24a2e..31da50c 100644 --- a/Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp +++ b/Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp @@ -1545,8 +1545,9 @@ TEST(CCLayerTreeHostCommonTest, verifyBackFaceCullingWithAnimatingTransforms) backfaceMatrix.rotate3d(0, 1, 0, 180); backfaceMatrix.translate(-50, -50); - // Having a descendant, and animating transforms, will make the animatingSurface own a render surface. + // Having a descendant that draws, masksToBounds, and animating transforms, will make the animatingSurface own a render surface. addAnimatedTransformToController(*animatingSurface->layerAnimationController(), 10, 30, 0); + animatingSurface->setMasksToBounds(true); // This is just an animating layer, not a surface. addAnimatedTransformToController(*animatingChild->layerAnimationController(), 10, 30, 0);
Created attachment 143580 [details] Patch for landing
Comment on attachment 143580 [details] Patch for landing Clearing flags on attachment: 143580 Committed r118219: <http://trac.webkit.org/changeset/118219>
All reviewed patches have been landed. Closing bug.