Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / cc / base / swap_promise.h
index 36a5b13..a406fda 100644 (file)
@@ -9,8 +9,6 @@
 
 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
@@ -35,7 +33,7 @@ class CC_EXPORT SwapPromise {
     DID_NOT_SWAP_UNKNOWN,
     SWAP_FAILS,
     COMMIT_FAILS,
-    SWAP_PROMISE_LIST_OVERFLOW,
+    COMMIT_NO_UPDATE,
   };
 
   SwapPromise() {}
@@ -43,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