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

Unified Diff: ui/compositor/transform_animation_curve_adapter.cc

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 | « ui/compositor/transform_animation_curve_adapter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/transform_animation_curve_adapter.cc
diff --git a/ui/compositor/transform_animation_curve_adapter.cc b/ui/compositor/transform_animation_curve_adapter.cc
index fa73140a5ec65bd0d212308b534abb16eb6a3cb0..2c114889321967b826f8381c076fa3dc342354ad 100644
--- a/ui/compositor/transform_animation_curve_adapter.cc
+++ b/ui/compositor/transform_animation_curve_adapter.cc
@@ -22,8 +22,8 @@ TransformAnimationCurveAdapter::TransformAnimationCurveAdapter(
TransformAnimationCurveAdapter::~TransformAnimationCurveAdapter() {
}
-double TransformAnimationCurveAdapter::Duration() const {
- return duration_.InSecondsF();
+base::TimeDelta TransformAnimationCurveAdapter::Duration() const {
+ return duration_;
}
scoped_ptr<cc::AnimationCurve> TransformAnimationCurveAdapter::Clone() const {
@@ -86,8 +86,8 @@ InverseTransformCurveAdapter::InverseTransformCurveAdapter(
InverseTransformCurveAdapter::~InverseTransformCurveAdapter() {
}
-double InverseTransformCurveAdapter::Duration() const {
- return duration_.InSeconds();
+base::TimeDelta InverseTransformCurveAdapter::Duration() const {
+ return duration_;
}
scoped_ptr<cc::AnimationCurve> InverseTransformCurveAdapter::Clone() const {
« no previous file with comments | « ui/compositor/transform_animation_curve_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698