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

Unified Diff: cc/trees/proxy_main.cc

Issue 2778223005: Plumb activation time to main (Closed)
Patch Set: add baseline test in layer_tree_host_unittest_proxy; initialize source_frame_number is all ctors Created 3 years, 8 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/trees/proxy_main.cc
diff --git a/cc/trees/proxy_main.cc b/cc/trees/proxy_main.cc
index de79051d4b38e3395e219f1054e431150859bd37..c7135c845c4a28d0fe0bc6cc49b03c4115595bfd 100644
--- a/cc/trees/proxy_main.cc
+++ b/cc/trees/proxy_main.cc
@@ -118,6 +118,11 @@ void ProxyMain::BeginMainFrame(
benchmark_instrumentation::kDoBeginFrame,
begin_main_frame_state->begin_frame_id);
+ begin_main_frame_state->begin_frame_args.source_frame_number =
+ layer_tree_host_->SourceFrameNumber();
+
+ begin_frame_args_for_testing_ = begin_main_frame_state->begin_frame_args;
+
base::TimeTicks begin_main_frame_start_time = base::TimeTicks::Now();
TRACE_EVENT_SYNTHETIC_DELAY_BEGIN("cc.BeginMainFrame");

Powered by Google App Engine
This is Rietveld 408576698