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

Unified Diff: cc/test/animation_test_common.h

Issue 693883004: Make cc::animation::TrimTimeToCurrentIteration,cc::AnimationCurve::Duration use TimeTicks/TimeDelta (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/cc.gyp ('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 328ae840f2270c30dcb067241398a4eec8fb4566..a69f0c95f6e1df537bb82b2e0cd7a5d550ee7b1a 100644
--- a/cc/test/animation_test_common.h
+++ b/cc/test/animation_test_common.h
@@ -26,12 +26,12 @@ class FakeFloatAnimationCurve : public FloatAnimationCurve {
explicit FakeFloatAnimationCurve(double duration);
~FakeFloatAnimationCurve() override;
- double Duration() const override;
+ base::TimeDelta Duration() const override;
float GetValue(double now) const override;
scoped_ptr<AnimationCurve> Clone() const override;
private:
- double duration_;
+ base::TimeDelta duration_;
};
class FakeTransformTransition : public TransformAnimationCurve {
@@ -39,7 +39,7 @@ class FakeTransformTransition : public TransformAnimationCurve {
explicit FakeTransformTransition(double duration);
~FakeTransformTransition() override;
- double Duration() const override;
+ base::TimeDelta Duration() const override;
gfx::Transform GetValue(double time) const override;
bool AnimatedBoundsForBox(const gfx::BoxF& box,
gfx::BoxF* bounds) const override;
@@ -51,7 +51,7 @@ class FakeTransformTransition : public TransformAnimationCurve {
scoped_ptr<AnimationCurve> Clone() const override;
private:
- double duration_;
+ base::TimeDelta duration_;
};
class FakeFloatTransition : public FloatAnimationCurve {
@@ -59,13 +59,13 @@ class FakeFloatTransition : public FloatAnimationCurve {
FakeFloatTransition(double duration, float from, float to);
~FakeFloatTransition() override;
- double Duration() const override;
+ base::TimeDelta Duration() const override;
float GetValue(double time) const override;
scoped_ptr<AnimationCurve> Clone() const override;
private:
- double duration_;
+ base::TimeDelta duration_;
float from_;
float to_;
};
« no previous file with comments | « cc/cc.gyp ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698