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

Unified Diff: cc/trees/thread_proxy.cc

Issue 1178963003: Trace main thread commit in flow events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make OnCommit virtual and only LatencyInfoSwapPromise can call it to trace flow events. Created 5 years, 6 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/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 94e8d89b7118cdbb4deec6686726189c51e08bba..006ddc4034b18025f05123bdd56049e6fe67f27d 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -867,6 +867,8 @@ void ThreadProxy::BeginMainFrame(
{
TRACE_EVENT0("cc", "ThreadProxy::BeginMainFrame::commit");
+ layer_tree_host()->trace_commit();
+
DebugScopedSetMainThreadBlocked main_thread_blocked(this);
// This CapturePostTasks should be destroyed before CommitComplete() is

Powered by Google App Engine
This is Rietveld 408576698