diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-11 13:45:28 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-11 13:45:28 +0200 |
commit | d6a599dbc9d824a462b2b206316e102bf8136446 (patch) | |
tree | ecb257a5e55b2239d74b90fdad62fccd661cf286 /Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp | |
parent | 3ccc3a85f09a83557b391aae380d3bf5f81a2911 (diff) | |
download | qtwebkit-d6a599dbc9d824a462b2b206316e102bf8136446.tar.gz |
Imported WebKit commit 8ff1f22783a32de82fee915abd55bd1b298f2644 (http://svn.webkit.org/repository/webkit/trunk@122325)
New snapshot that should work with the latest Qt build system changes
Diffstat (limited to 'Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp')
-rw-r--r-- | Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp b/Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp index 78448a517..73f1eb974 100644 --- a/Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp +++ b/Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp @@ -2183,7 +2183,11 @@ TEST(CCLayerTreeHostCommonTest, verifyAnimationsForRenderSurfaceHierarchy) childOfRS1->addChild(grandChildOfRS1); childOfRS2->addChild(grandChildOfRS2); - // In combination with descendantDrawsContent, opacity != 1 forces the layer to have a new renderSurface. + // Make our render surfaces. + renderSurface1->setForceRenderSurface(true); + renderSurface2->setForceRenderSurface(true); + + // Put an animated opacity on the render surface. addOpacityTransitionToController(*renderSurface1->layerAnimationController(), 10, 1, 0, false); // Also put an animated opacity on a layer without descendants. @@ -2194,9 +2198,8 @@ TEST(CCLayerTreeHostCommonTest, verifyAnimationsForRenderSurfaceHierarchy) WebTransformationMatrix sublayerTransform; sublayerTransform.scale3d(10.0, 1.0, 1.0); - // In combination with descendantDrawsContent and masksToBounds, an animated transform forces the layer to have a new renderSurface. + // Put a transform animation on the render surface. addAnimatedTransformToController(*renderSurface2->layerAnimationController(), 10, 30, 0); - renderSurface2->setMasksToBounds(true); // Also put transform animations on grandChildOfRoot, and grandChildOfRS2 addAnimatedTransformToController(*grandChildOfRoot->layerAnimationController(), 10, 30, 0); @@ -2793,9 +2796,11 @@ TEST(CCLayerTreeHostCommonTest, verifyBackFaceCullingWithAnimatingTransforms) backfaceMatrix.rotate3d(0, 1, 0, 180); backfaceMatrix.translate(-50, -50); - // Having a descendant that draws, masksToBounds, and animating transforms, will make the animatingSurface own a render surface. + // Make our render surface. + animatingSurface->setForceRenderSurface(true); + + // Animate the transform on the 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); @@ -3667,7 +3672,7 @@ class MockContentLayerDelegate : public ContentLayerDelegate { public: MockContentLayerDelegate() { } virtual ~MockContentLayerDelegate() { } - virtual void paintContents(SkCanvas*, const IntRect& clip, IntRect& opaque) { } + virtual void paintContents(SkCanvas*, const IntRect& clip, FloatRect& opaque) OVERRIDE { } }; PassRefPtr<ContentLayerChromium> createDrawableContentLayerChromium(ContentLayerDelegate* delegate) |