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

Unified Diff: ui/gfx/animation/animation_container_element.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_container.cc ('k') | ui/gfx/animation/linear_animation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/animation_container_element.h
diff --git a/ui/gfx/animation/animation_container_element.h b/ui/gfx/animation/animation_container_element.h
index 224655eb31804700d90c2b8f0d56d5fd3e6aaaa8..4136ae9c313f45a40a567f0d2722735f3d9fe965 100644
--- a/ui/gfx/animation/animation_container_element.h
+++ b/ui/gfx/animation/animation_container_element.h
@@ -7,6 +7,7 @@
#include "base/time/time.h"
#include "ui/gfx/gfx_export.h"
+#include "ui/gfx/frame_time.h"
namespace gfx {
@@ -16,10 +17,10 @@ class GFX_EXPORT AnimationContainerElement {
public:
// Sets the start of the animation. This is invoked from
// AnimationContainer::Start.
- virtual void SetStartTime(base::TimeTicks start_time) = 0;
+ virtual void SetStartTime(gfx::FrameTime start_time) = 0;
// Invoked when the animation is to progress.
- virtual void Step(base::TimeTicks time_now) = 0;
+ virtual void Step(gfx::FrameTime time_now) = 0;
// Returns the time interval of the animation. If an Element needs to change
// this it should first invoke Stop, then Start.
« no previous file with comments | « ui/gfx/animation/animation_container.cc ('k') | ui/gfx/animation/linear_animation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698