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

Unified Diff: cc/thread_proxy.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/test/layer_tree_test_common.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index 41d6d90e8dbc3bbbac7ee03a084431df85d8912e..783efc7fa848903d0bd2e79f8cfe7591287ba5d8 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -916,7 +916,9 @@ ThreadProxy::ScheduledActionDrawAndSwapInternal(bool forced_draw) {
layer_tree_host_impl_->CanDraw() &&
(layer_tree_host_impl_->PrepareToDraw(&frame) || forced_draw);
if (draw_frame) {
- layer_tree_host_impl_->DrawLayers(&frame);
+ layer_tree_host_impl_->DrawLayers(
+ &frame,
+ scheduler_on_impl_thread_->lastVSyncTime());
result.didDraw = true;
}
layer_tree_host_impl_->DidDrawAllLayers(frame);
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698