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

Unified Diff: cc/trees/layer_tree_host.h

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/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 449d8e4e09a0f614e44ead23cf8677e65fa2dedb..9824d3eea1a7b2e06d6d02c175e8f5f7a2f000d7 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -311,6 +311,14 @@ class CC_EXPORT LayerTreeHost {
size_t num_queued_swap_promises() const { return swap_promise_list_.size(); }
+ void trace_commit() {
Yufeng Shen (Slow to review) 2015/06/16 15:11:05 Can you use Camel style ? underscore style is usua
+ for (unsigned int i = 0; i < num_queued_swap_promises(); i++) {
+ SwapPromise* swap_promise_ = swap_promise_list_.at(i);
+
+ swap_promise_->OnCommit();
+ }
Yufeng Shen (Slow to review) 2015/06/16 15:11:05 It can be simplified like this: for (auto* swap_p
+ }
+
void set_surface_id_namespace(uint32_t id_namespace);
SurfaceSequence CreateSurfaceSequence();

Powered by Google App Engine
This is Rietveld 408576698