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

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: Naming and comments improvements. 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
« no previous file with comments | « cc/output/latency_info_swap_promise.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/swap_promise.h
diff --git a/cc/output/swap_promise.h b/cc/output/swap_promise.h
index 45deee834018bdca7b1f7e2d104ab725ea54bee3..6b7f06b5ce7c94043e8df7d5f4962e50c2528d21 100644
--- a/cc/output/swap_promise.h
+++ b/cc/output/swap_promise.h
@@ -39,6 +39,7 @@ namespace cc {
// assume that Did*() methods are called at a particular thread. It is better
// to let the subclass carry thread-safe member data and operate on that
// member data in Did*().
+//
Yufeng Shen (Slow to review) 2015/06/16 17:54:16 extra line
class CC_EXPORT SwapPromise {
public:
enum DidNotSwapReason {
@@ -54,6 +55,8 @@ class CC_EXPORT SwapPromise {
virtual void DidActivate() = 0;
virtual void DidSwap(CompositorFrameMetadata* metadata) = 0;
virtual void DidNotSwap(DidNotSwapReason reason) = 0;
+ // OnCommit is only called for LatencyInfoSwapPromise
+ virtual void OnCommit() {}
Yufeng Shen (Slow to review) 2015/06/16 17:54:16 Should not mention subclass's behavior, only menti
// 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
« no previous file with comments | « cc/output/latency_info_swap_promise.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698