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

Unified Diff: cc/test/animation_test_common.h

Issue 719453007: Make Keyframe use TimeTicks/TimeDelta to represent time instead of double. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/layers/layer_unittest.cc ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/animation_test_common.h
diff --git a/cc/test/animation_test_common.h b/cc/test/animation_test_common.h
index a69f0c95f6e1df537bb82b2e0cd7a5d550ee7b1a..2c41518794a267e6e6aa7d0b47046850b2439cad 100644
--- a/cc/test/animation_test_common.h
+++ b/cc/test/animation_test_common.h
@@ -27,7 +27,7 @@ class FakeFloatAnimationCurve : public FloatAnimationCurve {
~FakeFloatAnimationCurve() override;
base::TimeDelta Duration() const override;
- float GetValue(double now) const override;
+ float GetValue(base::TimeDelta now) const override;
scoped_ptr<AnimationCurve> Clone() const override;
private:
@@ -40,7 +40,7 @@ class FakeTransformTransition : public TransformAnimationCurve {
~FakeTransformTransition() override;
base::TimeDelta Duration() const override;
- gfx::Transform GetValue(double time) const override;
+ gfx::Transform GetValue(base::TimeDelta time) const override;
bool AnimatedBoundsForBox(const gfx::BoxF& box,
gfx::BoxF* bounds) const override;
bool AffectsScale() const override;
@@ -60,7 +60,7 @@ class FakeFloatTransition : public FloatAnimationCurve {
~FakeFloatTransition() override;
base::TimeDelta Duration() const override;
- float GetValue(double time) const override;
+ float GetValue(base::TimeDelta time) const override;
scoped_ptr<AnimationCurve> Clone() const override;
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698