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

Unified Diff: ui/gfx/animation/animation.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/compositor/layer_animator.cc ('k') | ui/gfx/animation/animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/animation.h
diff --git a/ui/gfx/animation/animation.h b/ui/gfx/animation/animation.h
index 32d297e2939b3c2e7455b0f89ed9938ceab371e2..2ab8192fafb10470a6170c8aa4dd0a25b4294a49 100644
--- a/ui/gfx/animation/animation.h
+++ b/ui/gfx/animation/animation.h
@@ -77,12 +77,12 @@ class GFX_EXPORT Animation : public AnimationContainerElement {
virtual bool ShouldSendCanceledFromStop();
AnimationContainer* container() { return container_.get(); }
- base::TimeTicks start_time() const { return start_time_; }
+ gfx::FrameTime start_time() const { return start_time_; }
AnimationDelegate* delegate() { return delegate_; }
// AnimationContainer::Element overrides
- virtual void SetStartTime(base::TimeTicks start_time) OVERRIDE;
- virtual void Step(base::TimeTicks time_now) = 0;
+ virtual void SetStartTime(gfx::FrameTime start_time) OVERRIDE;
+ virtual void Step(gfx::FrameTime time_now) = 0;
virtual base::TimeDelta GetTimerInterval() const OVERRIDE;
private:
@@ -99,7 +99,7 @@ class GFX_EXPORT Animation : public AnimationContainerElement {
scoped_refptr<AnimationContainer> container_;
// Time we started at.
- base::TimeTicks start_time_;
+ gfx::FrameTime start_time_;
DISALLOW_COPY_AND_ASSIGN(Animation);
};
« no previous file with comments | « ui/compositor/layer_animator.cc ('k') | ui/gfx/animation/animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698