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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 1178963003: Trace main thread commit in flow events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make OnCommitForSwapPromises non pure so that not all the derived classes need to implement it. 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/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 9d1c36657e1e410aec6c624f28fe77fef521040d..6be23d05c2993c2ca5e951927543ac3dc49e4bec 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -1300,4 +1300,9 @@ void LayerTreeHost::RecordFrameTimingEvents(
main_frame_events.Pass());
}
+void LayerTreeHost::TraceCommit() {
+ for (auto* swap_promise : swap_promise_list_)
+ swap_promise->OnCommitForSwapPromises();
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698