Index: cc/output/swap_promise.h |
diff --git a/cc/output/swap_promise.h b/cc/output/swap_promise.h |
index 45deee834018bdca7b1f7e2d104ab725ea54bee3..cf0b88de9ebc5817a4121a79e27b436ebea03086 100644 |
--- a/cc/output/swap_promise.h |
+++ b/cc/output/swap_promise.h |
@@ -54,6 +54,8 @@ class CC_EXPORT SwapPromise { |
virtual void DidActivate() = 0; |
virtual void DidSwap(CompositorFrameMetadata* metadata) = 0; |
virtual void DidNotSwap(DidNotSwapReason reason) = 0; |
+ // This is called when the main thread starts a (blocking) commit |
+ virtual void OnCommit() {} |
// 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 |