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

Unified Diff: cc/CCScheduler.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/CCLayerTreeHostImpl.cpp ('k') | cc/CCScheduler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCScheduler.h
diff --git a/cc/CCScheduler.h b/cc/CCScheduler.h
index 3302bff00df2c661c00ac488053979eab44d1cba..2d276a61936c568dd44c31cf11377d8a7bc049b4 100644
--- a/cc/CCScheduler.h
+++ b/cc/CCScheduler.h
@@ -7,7 +7,7 @@
#include "CCFrameRateController.h"
#include "CCSchedulerStateMachine.h"
-
+#include "base/time.h"
#include <wtf/Noncopyable.h>
#include <wtf/PassOwnPtr.h>
@@ -35,7 +35,7 @@ public:
virtual void scheduledActionBeginFrame() = 0;
virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossible() = 0;
virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced() = 0;
- virtual void scheduledActionUpdateMoreResources(double monotonicTimeLimit) = 0;
+ virtual void scheduledActionUpdateMoreResources(base::TimeTicks timeLimit) = 0;
virtual void scheduledActionCommit() = 0;
virtual void scheduledActionBeginContextRecreation() = 0;
virtual void scheduledActionAcquireLayerTexturesForMainThread() = 0;
@@ -84,7 +84,7 @@ public:
bool commitPending() const { return m_stateMachine.commitPending(); }
bool redrawPending() const { return m_stateMachine.redrawPending(); }
- void setTimebaseAndInterval(double timebase, double intervalSeconds);
+ void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interval);
// CCFrameRateControllerClient implementation
virtual void vsyncTick() OVERRIDE;
« no previous file with comments | « cc/CCLayerTreeHostImpl.cpp ('k') | cc/CCScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698