namespace cc {
-const unsigned int kMaxQueuedSwapPromiseNumber = 100;
-
// When a change to the compositor's state/invalidation/whatever happens, a
// Swap Promise can be inserted into LayerTreeHost/LayerTreeImpl, to track
// whether the compositor's reply to the new state/invaliadtion/whatever is
DID_NOT_SWAP_UNKNOWN,
SWAP_FAILS,
COMMIT_FAILS,
- SWAP_PROMISE_LIST_OVERFLOW,
+ COMMIT_NO_UPDATE,
};
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