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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 914403003: cc: Add main frame timing info to frame timing tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 2efe2dab6196301fe3cad01b49ba2ac36950010b..2c9c2048cc1d5594476c9f5a4ba6029dc8de4c7c 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -524,6 +524,19 @@ class CC_EXPORT LayerTreeHostImpl
return frame_timing_tracker_.get();
}
+ // Record main frame timing information.
+ // |start_of_main_frame_args| is the BeginFrameArgs of the beginning of the
+ // main frame (ie the frame that kicked off the main frame).
+ // |expected_next_main_frame_args| is the BeginFrameArgs of the frame that
+ // follows the completion of the main frame (whether it is activation or some
+ // other completion, such as early out). Note that if there is a main frame
+ // scheduled in that frame, then this BeginFrameArgs will become the main
+ // frame args. However, if no such frame is scheduled, then this _would_ be
+ // the main frame args if it was scheduled.
+ void RecordMainFrameTiming(
+ const BeginFrameArgs& start_of_main_frame_args,
+ const BeginFrameArgs& expected_next_main_frame_args);
+
protected:
LayerTreeHostImpl(
const LayerTreeSettings& settings,

Powered by Google App Engine
This is Rietveld 408576698