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

Unified Diff: ui/gfx/animation/multi_animation.cc

Issue 26880010: gfx: Add FrameTime and DisplayTime classes (Closed) Base URL: http://git.chromium.org/chromium/src.git@checkHighResNow4
Patch Set: WIP Created 7 years, 2 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/gfx/animation/multi_animation.h ('k') | ui/gfx/animation/multi_animation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/multi_animation.cc
diff --git a/ui/gfx/animation/multi_animation.cc b/ui/gfx/animation/multi_animation.cc
index 4ecc73c805a7059a189ddba4840393c9720c2a4c..67ae24c36b06560e53d91d46725ac3e4b3f0bcaa 100644
--- a/ui/gfx/animation/multi_animation.cc
+++ b/ui/gfx/animation/multi_animation.cc
@@ -43,7 +43,7 @@ double MultiAnimation::GetCurrentValue() const {
return current_value_;
}
-void MultiAnimation::Step(base::TimeTicks time_now) {
+void MultiAnimation::Step(gfx::FrameTime time_now) {
double last_value = current_value_;
size_t last_index = current_part_index_;
@@ -67,7 +67,7 @@ void MultiAnimation::Step(base::TimeTicks time_now) {
}
}
-void MultiAnimation::SetStartTime(base::TimeTicks start_time) {
+void MultiAnimation::SetStartTime(gfx::FrameTime start_time) {
Animation::SetStartTime(start_time);
current_value_ = 0;
current_part_index_ = 0;
« no previous file with comments | « ui/gfx/animation/multi_animation.h ('k') | ui/gfx/animation/multi_animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698