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

Unified Diff: cc/frame_rate_controller.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/frame_rate_controller.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/frame_rate_controller.cc
diff --git a/cc/frame_rate_controller.cc b/cc/frame_rate_controller.cc
index 2f19c253ee8903a43541208548d7f885e8580199..5fa1255e2cc8fd0fd6ba935e946e9978b9049782 100644
--- a/cc/frame_rate_controller.cc
+++ b/cc/frame_rate_controller.cc
@@ -153,4 +153,12 @@ base::TimeTicks FrameRateController::nextTickTime()
return base::TimeTicks();
}
+base::TimeTicks FrameRateController::lastTickTime()
+{
+ if (m_isTimeSourceThrottling)
+ return m_timeSource->lastTickTime();
+
+ return base::TimeTicks::Now();
+}
+
} // namespace cc
« no previous file with comments | « cc/frame_rate_controller.h ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698