Index: cc/base/swap_promise.h |
diff --git a/cc/base/swap_promise.h b/cc/base/swap_promise.h |
index 00614cf65239f8bec65e8c9ddf1c95900d96ed05..a406fda6678b15bd6d59020699076601f529ab5e 100644 |
--- a/cc/base/swap_promise.h |
+++ b/cc/base/swap_promise.h |
@@ -41,6 +41,11 @@ class CC_EXPORT SwapPromise { |
virtual void DidSwap(CompositorFrameMetadata* metadata) = 0; |
virtual void DidNotSwap(DidNotSwapReason reason) = 0; |
+ |
+ // 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 |
+ // visualize the object's path through the system. |
+ virtual int64 TraceId() const = 0; |
}; |
} // namespace cc |