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

Unified Diff: cc/scheduler.cc

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 188402 Created 7 years, 9 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/scheduler.h ('k') | cc/single_thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler.cc
diff --git a/cc/scheduler.cc b/cc/scheduler.cc
index 365d68be85fa292b9acac887d6f9b78da0e5dca7..d0009f10466a8bc0cc254d4054d60128ec48507a 100644
--- a/cc/scheduler.cc
+++ b/cc/scheduler.cc
@@ -150,6 +150,11 @@ base::TimeTicks Scheduler::anticipatedDrawTime()
return m_frameRateController->nextTickTime();
}
+base::TimeTicks Scheduler::lastVSyncTime()
+{
+ return m_frameRateController->lastTickTime();
+}
+
void Scheduler::vsyncTick(bool throttled)
{
TRACE_EVENT1("cc", "Scheduler::vsyncTick", "throttled", throttled);
« no previous file with comments | « cc/scheduler.h ('k') | cc/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698