RESOLVED FIXED81363
[chromium] Transform animation state should be inherited from parents
https://bugs.webkit.org/show_bug.cgi?id=81363
Summary [chromium] Transform animation state should be inherited from parents
Dana Jansens
Reported 2012-03-16 10:00:50 PDT
[chromium] Transform animation state should be inherited from parents
Attachments
Patch (28.05 KB, patch)
2012-03-16 10:06 PDT, Dana Jansens
no flags
Patch (26.71 KB, patch)
2012-03-16 13:58 PDT, Dana Jansens
no flags
Patch (26.78 KB, patch)
2012-03-16 17:38 PDT, Dana Jansens
no flags
Dana Jansens
Comment 1 2012-03-16 10:06:25 PDT
Dana Jansens
Comment 2 2012-03-16 10:08:42 PDT
I'm not sure if this is something we'll need to worry about being problematic, but which layers have RenderSurfaces may be different between the two threads in the face of animating opacity.
Dana Jansens
Comment 3 2012-03-16 13:58:24 PDT
Created attachment 132371 [details] Patch - Renamed the transformIsAnimating() functions based on feedback from Shawn. I think they're more clear and consistent now. - Moved the bugfix for creation of render surfaces out, as it's a separate issue.
Adrienne Walker
Comment 4 2012-03-16 15:33:01 PDT
Comment on attachment 132371 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=132371&action=review Looks good in general. R=me, with nits. > Source/WebCore/platform/graphics/chromium/cc/CCRenderSurface.h:95 > + bool targetSurfaceTransformsAreAnimating() const { return m_targetSurfaceTransformsAreAnimating; } > + void setTargetSurfaceTransformsAreAnimating(bool animating) { m_targetSurfaceTransformsAreAnimating = animating; } > + bool screenSpaceTransformsAreAnimating() const { return m_screenSpaceTransformsAreAnimating; } > + void setScreenSpaceTransformsAreAnimating(bool animating) { m_screenSpaceTransformsAreAnimating = animating; } Why is screen space transform plural here? Isn't there just one? > Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp:724 > + EXPECT_TRUE(renderSurface2->renderSurface()->targetSurfaceTransformsAreAnimating()); Can you add a test where renderSurface()->targetSurfaceTransformsAreAnimating() is false? > Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp:729 > + // Verify drawTransformsAnimatingInScreen values > + // Can you add a test where screenSpaceTransformIsAnimating ends up being false?
Dana Jansens
Comment 5 2012-03-16 16:52:18 PDT
Comment on attachment 132371 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=132371&action=review ty :) >> Source/WebCore/platform/graphics/chromium/cc/CCRenderSurface.h:95 >> + void setScreenSpaceTransformsAreAnimating(bool animating) { m_screenSpaceTransformsAreAnimating = animating; } > > Why is screen space transform plural here? Isn't there just one? there is going to be one for the surface and one for the replica. >> Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp:724 >> + EXPECT_TRUE(renderSurface2->renderSurface()->targetSurfaceTransformsAreAnimating()); > > Can you add a test where renderSurface()->targetSurfaceTransformsAreAnimating() is false? k! >> Source/WebKit/chromium/tests/CCLayerTreeHostCommonTest.cpp:729 >> + // > > Can you add a test where screenSpaceTransformIsAnimating ends up being false? k!
Dana Jansens
Comment 6 2012-03-16 17:38:37 PDT
Created attachment 132426 [details] Patch Thanks for the input, I made that test a lot better. It tests both cases with the 2 render surfaces, and tests propogation of screen space transforms by setting transforms on 2 of the 3 children of root.
WebKit Review Bot
Comment 7 2012-03-18 14:59:16 PDT
Comment on attachment 132426 [details] Patch Clearing flags on attachment: 132426 Committed r111137: <http://trac.webkit.org/changeset/111137>
WebKit Review Bot
Comment 8 2012-03-18 14:59:21 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.