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

Unified Diff: cc/CCFrameRateController.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/CCDelayBasedTimeSourceTest.cpp ('k') | cc/CCFrameRateController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCFrameRateController.h
diff --git a/cc/CCFrameRateController.h b/cc/CCFrameRateController.h
index 6d1c4a8757c4f9853380717a2a624c7ee1942e10..c38914b34184f46de397e1a1dfec554643d39880 100644
--- a/cc/CCFrameRateController.h
+++ b/cc/CCFrameRateController.h
@@ -6,7 +6,7 @@
#define CCFrameRateController_h
#include "CCTimer.h"
-
+#include "base/time.h"
#include <wtf/Deque.h>
#include <wtf/OwnPtr.h>
#include <wtf/PassOwnPtr.h>
@@ -47,9 +47,9 @@ public:
void didFinishFrame();
void didAbortAllPendingFrames();
void setMaxFramesPending(int); // 0 for unlimited.
- double nextTickTimeIfActivated();
+ base::TimeTicks nextTickTimeIfActivated();
- void setTimebaseAndInterval(double timebase, double intervalSeconds);
+ void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interval);
void setSwapBuffersCompleteSupported(bool);
protected:
« no previous file with comments | « cc/CCDelayBasedTimeSourceTest.cpp ('k') | cc/CCFrameRateController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698