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

Unified Diff: ui/compositor/test/layer_animator_test_controller.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
« no previous file with comments | « ui/compositor/layer_animator_unittest.cc ('k') | webkit/renderer/compositor_bindings/web_animation_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/layer_animator_test_controller.cc
diff --git a/ui/compositor/test/layer_animator_test_controller.cc b/ui/compositor/test/layer_animator_test_controller.cc
index befbd442a4b9ea3c6b3ee418b5185769d9ca9f95..9047f6cb88b96ee8bffc106a901956c29024326a 100644
--- a/ui/compositor/test/layer_animator_test_controller.cc
+++ b/ui/compositor/test/layer_animator_test_controller.cc
@@ -48,12 +48,12 @@ void LayerAnimatorTestController::StartThreadedAnimationsIfNeeded() {
element->effective_start_time() != base::TimeTicks())
continue;
- animator_->OnThreadedAnimationStarted(cc::AnimationEvent(
- cc::AnimationEvent::Started,
- 0,
- element->animation_group_id(),
- threaded_properties[i],
- (gfx::FrameTime::Now() - base::TimeTicks()).InSecondsF()));
+ animator_->OnThreadedAnimationStarted(
+ cc::AnimationEvent(cc::AnimationEvent::Started,
+ 0,
+ element->animation_group_id(),
+ threaded_properties[i],
+ gfx::FrameTime::Now()));
}
}
« no previous file with comments | « ui/compositor/layer_animator_unittest.cc ('k') | webkit/renderer/compositor_bindings/web_animation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698