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

Unified Diff: cc/base/swap_promise.h

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: cc/base/swap_promise.h
diff --git a/cc/base/swap_promise.h b/cc/base/swap_promise.h
index 36a5b130a50498ae33e56aab4bb97320246a7289..4fab29fc5a528c1f52b1756e736a2ab7d61c88b6 100644
--- a/cc/base/swap_promise.h
+++ b/cc/base/swap_promise.h
@@ -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
@@ -41,7 +39,8 @@ class CC_EXPORT SwapPromise {
SwapPromise() {}
virtual ~SwapPromise() {}
- virtual void DidSwap(CompositorFrameMetadata* metadata) = 0;
+ virtual void DidSwap(int source_frame_number,
+ CompositorFrameMetadata* metadata) = 0;
virtual void DidNotSwap(DidNotSwapReason reason) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698