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

Unified Diff: cc/CCFrameRateController.cpp

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/CCFrameRateController.h ('k') | cc/CCFrameRateControllerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCFrameRateController.cpp
diff --git a/cc/CCFrameRateController.cpp b/cc/CCFrameRateController.cpp
index 25d4d7e4cd45d2e53e8fb3203f90720c437ca705..d143a850cd27cbe486007a86513844644f425aa6 100644
--- a/cc/CCFrameRateController.cpp
+++ b/cc/CCFrameRateController.cpp
@@ -90,10 +90,10 @@ void CCFrameRateController::setMaxFramesPending(int maxFramesPending)
m_maxFramesPending = maxFramesPending;
}
-void CCFrameRateController::setTimebaseAndInterval(double timebase, double intervalSeconds)
+void CCFrameRateController::setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interval)
{
if (m_isTimeSourceThrottling)
- m_timeSource->setTimebaseAndInterval(timebase, intervalSeconds);
+ m_timeSource->setTimebaseAndInterval(timebase, interval);
}
void CCFrameRateController::setSwapBuffersCompleteSupported(bool supported)
@@ -151,12 +151,12 @@ void CCFrameRateController::didAbortAllPendingFrames()
m_numFramesPending = 0;
}
-double CCFrameRateController::nextTickTimeIfActivated()
+base::TimeTicks CCFrameRateController::nextTickTimeIfActivated()
{
if (m_isTimeSourceThrottling)
return m_timeSource->nextTickTimeIfActivated();
- return monotonicallyIncreasingTime();
+ return base::TimeTicks::Now();
}
}
« no previous file with comments | « cc/CCFrameRateController.h ('k') | cc/CCFrameRateControllerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698