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

Unified Diff: cc/layers/layer.cc

Issue 226543005: CC should use TimeTicks and TimeDelta to represent time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests related changes 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 a9e59d35ed8007322e6961899eb8ad625c2e9b8a..7ad512f3d862d976ad4ae3059841c139dfa9742a 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(
enne (OOO) 2014/04/11 14:41:10 Can you push this up another layer to the WebLayer
+ animation_id,
+ base::TimeTicks::FromInternalValue(time_offset *
+ base::Time::kMicrosecondsPerSecond));
SetNeedsCommit();
}

Powered by Google App Engine
This is Rietveld 408576698