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

Unified Diff: cc/output/swap_promise.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/output/swap_promise.h
diff --git a/cc/output/swap_promise.h b/cc/output/swap_promise.h
index 45deee834018bdca7b1f7e2d104ab725ea54bee3..636de4d529152699b224623b388c41cb81c0185e 100644
--- a/cc/output/swap_promise.h
+++ b/cc/output/swap_promise.h
@@ -54,6 +54,7 @@ class CC_EXPORT SwapPromise {
virtual void DidActivate() = 0;
virtual void DidSwap(CompositorFrameMetadata* metadata) = 0;
virtual void DidNotSwap(DidNotSwapReason reason) = 0;
+ virtual void OnCommit() = 0;
Yufeng Shen (Slow to review) 2015/06/16 15:11:05 maybe giving it an empty implementation (non-virtu
// A non-zero trace id identifies a trace flow object that is embedded in the
// swap promise. This can be used for registering additional flow steps to

Powered by Google App Engine
This is Rietveld 408576698