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

Unified Diff: cc/CCTimeSource.h

Issue 10956006: Convert CC scheduler logic to use base::TimeTicks/Delta instead of doubles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 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 | « cc/CCThreadedTest.cpp ('k') | cc/test/CCSchedulerTestCommon.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCTimeSource.h
diff --git a/cc/CCTimeSource.h b/cc/CCTimeSource.h
index e0536cbb6c5c02c5683bc29e5f16b887db9a5806..fab71dbb0647222e7af7f2aac1a77e1e408126aa 100644
--- a/cc/CCTimeSource.h
+++ b/cc/CCTimeSource.h
@@ -5,6 +5,7 @@
#ifndef CCTimeSource_h
#define CCTimeSource_h
+#include "base/time.h"
#include <wtf/RefCounted.h>
namespace cc {
@@ -30,9 +31,9 @@ public:
virtual void setClient(CCTimeSourceClient*) = 0;
virtual void setActive(bool) = 0;
virtual bool active() const = 0;
- virtual void setTimebaseAndInterval(double timebase, double intervalSeconds) = 0;
- virtual double lastTickTime() = 0;
- virtual double nextTickTimeIfActivated() = 0;
+ virtual void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interval) = 0;
+ virtual base::TimeTicks lastTickTime() = 0;
+ virtual base::TimeTicks nextTickTimeIfActivated() = 0;
};
}
« no previous file with comments | « cc/CCThreadedTest.cpp ('k') | cc/test/CCSchedulerTestCommon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698