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

Unified Diff: ui/gfx/animation/animation_container.h

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/animation.cc ('k') | ui/gfx/animation/animation_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/animation_container.h
diff --git a/ui/gfx/animation/animation_container.h b/ui/gfx/animation/animation_container.h
index bb59f8f0cc75451659baaa18fe5b8edf23679bdd..229046836485858b819a560987efd26fcb7e27e2 100644
--- a/ui/gfx/animation/animation_container.h
+++ b/ui/gfx/animation/animation_container.h
@@ -11,6 +11,7 @@
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "ui/gfx/gfx_export.h"
+#include "ui/gfx/frame_time.h"
namespace gfx {
@@ -46,7 +47,7 @@ class GFX_EXPORT AnimationContainer
}
// The time the last animation ran at.
- base::TimeTicks last_tick_time() const { return last_tick_time_; }
+ gfx::FrameTime last_tick_time() const { return last_tick_time_; }
// Are there any timers running?
bool is_running() const { return !elements_.empty(); }
@@ -71,7 +72,7 @@ class GFX_EXPORT AnimationContainer
// . If only a single animation has been started and the timer hasn't yet
// fired this is the time the animation was added.
// . The time the last animation ran at (::Run was invoked).
- base::TimeTicks last_tick_time_;
+ gfx::FrameTime last_tick_time_;
// Set of elements (animations) being managed.
Elements elements_;
« no previous file with comments | « ui/gfx/animation/animation.cc ('k') | ui/gfx/animation/animation_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698