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

Unified Diff: cc/test/CCAnimationTestCommon.h

Issue 10961036: Gracefully handle zero duration curves in CCActiveAnimation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « cc/CCActiveAnimationTest.cpp ('k') | cc/test/CCAnimationTestCommon.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/CCAnimationTestCommon.h
diff --git a/cc/test/CCAnimationTestCommon.h b/cc/test/CCAnimationTestCommon.h
index 6995f77a8e0d6cb2cab5ea34ff9bdbf24f5e964f..6ebf199e97feb69def061304b04fee60152ccf93 100644
--- a/cc/test/CCAnimationTestCommon.h
+++ b/cc/test/CCAnimationTestCommon.h
@@ -22,11 +22,15 @@ namespace WebKitTests {
class FakeFloatAnimationCurve : public cc::CCFloatAnimationCurve {
public:
FakeFloatAnimationCurve();
+ explicit FakeFloatAnimationCurve(double duration);
virtual ~FakeFloatAnimationCurve();
virtual double duration() const OVERRIDE;
virtual float getValue(double now) const OVERRIDE;
virtual PassOwnPtr<cc::CCAnimationCurve> clone() const OVERRIDE;
+
+private:
+ double m_duration;
};
class FakeTransformTransition : public cc::CCTransformAnimationCurve {
« no previous file with comments | « cc/CCActiveAnimationTest.cpp ('k') | cc/test/CCAnimationTestCommon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698