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

Unified Diff: ui/compositor/layer_animator.cc

Issue 231133002: CC::Animations should use TimeTicks & TimeDelta to represent time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code changed as per review comments. Created 6 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
Index: ui/compositor/layer_animator.cc
diff --git a/ui/compositor/layer_animator.cc b/ui/compositor/layer_animator.cc
index 0454152ef4a11482a01961d1f1c8e7350902e244..ce2b0ff364d9d7b5150ba90fa8879c5f8f46cc04 100644
--- a/ui/compositor/layer_animator.cc
+++ b/ui/compositor/layer_animator.cc
@@ -322,8 +322,7 @@ void LayerAnimator::OnThreadedAnimationStarted(
if (!running->sequence()->waiting_for_group_start())
return;
- base::TimeTicks start_time = base::TimeTicks::FromInternalValue(
- event.monotonic_time * base::Time::kMicrosecondsPerSecond);
+ base::TimeTicks start_time = event.monotonic_time;
running->sequence()->set_waiting_for_group_start(false);

Powered by Google App Engine
This is Rietveld 408576698