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

Unified Diff: cc/layers/layer.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: Created 6 years, 8 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: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 8a2b7e408d8d8ee1503bee58831ad6c92cd4899d..a111a5518bd0d3ff35bacf6828f7c514292c88f2 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -1118,7 +1118,10 @@ bool Layer::AddAnimation(scoped_ptr <Animation> animation) {
}
void Layer::PauseAnimation(int animation_id, double time_offset) {
- layer_animation_controller_->PauseAnimation(animation_id, time_offset);
+ layer_animation_controller_->PauseAnimation(
+ animation_id,
+ base::TimeTicks::FromInternalValue(time_offset *
danakj 2014/04/09 16:34:15 Is converting back and forth from double to time t
Sikugu_ 2014/04/10 14:04:57 Keeping this as it is to avoid jitter. Will take c
+ base::Time::kMicrosecondsPerSecond));
SetNeedsCommit();
}

Powered by Google App Engine
This is Rietveld 408576698