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

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: 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
Index: cc/scheduler.cc
diff --git a/cc/scheduler.cc b/cc/scheduler.cc
index 72631707fd9a832e93606f5cba7ee04db831d439..c8045a8116a1bc3bf88c84ec070e175b386b9a4f 100644
--- a/cc/scheduler.cc
+++ b/cc/scheduler.cc
@@ -150,6 +150,11 @@ base::TimeTicks Scheduler::anticipatedDrawTime()
return m_frameRateController->nextTickTime();
}
+base::TimeTicks Scheduler::lastDrawTime()
nduca 2013/03/13 05:53:28 Any reason not to call this lastVSyncTickTime or s
egraether 2013/03/13 22:26:01 Done.
+{
+ return m_frameRateController->lastTickTime();
+}
+
void Scheduler::vsyncTick(bool throttled)
{
TRACE_EVENT1("cc", "Scheduler::vsyncTick", "throttled", throttled);

Powered by Google App Engine
This is Rietveld 408576698