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

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: rebase 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
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 778f56200a43d25bde81135f868e627903f3868d..74ca5d8257b74ce8e7673af9c26f95aa4f9e6402 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -536,6 +536,19 @@ class CC_EXPORT LayerTreeHostImpl
const gfx::Point& viewport_point,
bool is_wheel_scroll);
+ // 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,
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698