Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Unified Diff: Source/platform/graphics/GraphicsLayerTest.cpp

Issue 1131833002: [Sketch] Animations: Torpedo the old intrusive animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scroll
Patch Set: Delete more. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/graphics/GraphicsLayerClient.h ('k') | Source/platform/scroll/ProgrammaticScrollAnimator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsLayerTest.cpp
diff --git a/Source/platform/graphics/GraphicsLayerTest.cpp b/Source/platform/graphics/GraphicsLayerTest.cpp
index d7f5cbb55a21cfbbf0a58e688b8abc643bde9af5..b26a440d6a45eeddaa78f098129535900dd0e839 100644
--- a/Source/platform/graphics/GraphicsLayerTest.cpp
+++ b/Source/platform/graphics/GraphicsLayerTest.cpp
@@ -96,35 +96,6 @@ private:
MockGraphicsLayerClient m_client;
};
-TEST_F(GraphicsLayerTest, updateLayerShouldFlattenTransformWithAnimations)
-{
- ASSERT_FALSE(m_platformLayer->hasActiveAnimation());
-
- OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(Platform::current()->compositorSupport()->createFloatAnimationCurve());
- curve->add(WebFloatKeyframe(0.0, 0.0));
- OwnPtr<WebCompositorAnimation> floatAnimation(adoptPtr(Platform::current()->compositorSupport()->createAnimation(*curve, WebCompositorAnimation::TargetPropertyOpacity)));
- int animationId = floatAnimation->id();
- ASSERT_TRUE(m_platformLayer->addAnimation(floatAnimation.leakPtr()));
-
- ASSERT_TRUE(m_platformLayer->hasActiveAnimation());
-
- m_graphicsLayer->setShouldFlattenTransform(false);
-
- m_platformLayer = m_graphicsLayer->platformLayer();
- ASSERT_TRUE(m_platformLayer);
-
- ASSERT_TRUE(m_platformLayer->hasActiveAnimation());
- m_platformLayer->removeAnimation(animationId);
- ASSERT_FALSE(m_platformLayer->hasActiveAnimation());
-
- m_graphicsLayer->setShouldFlattenTransform(true);
-
- m_platformLayer = m_graphicsLayer->platformLayer();
- ASSERT_TRUE(m_platformLayer);
-
- ASSERT_FALSE(m_platformLayer->hasActiveAnimation());
-}
-
class FakeScrollableArea : public ScrollableArea {
public:
virtual bool isActive() const override { return false; }
« no previous file with comments | « Source/platform/graphics/GraphicsLayerClient.h ('k') | Source/platform/scroll/ProgrammaticScrollAnimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698