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

Unified Diff: cc/surfaces/surface_manager.h

Issue 2614423003: Adding SatisfySequence and RequireSequence to SurfaceManager (Closed)
Patch Set: up Created 3 years, 11 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/surfaces/surface_manager.h
diff --git a/cc/surfaces/surface_manager.h b/cc/surfaces/surface_manager.h
index 5e45a62fd4f4cf66232b2e7a6e5e507017cc6ea6..b6885b81456a57a0ad6d6390afb37d5f71365e24 100644
--- a/cc/surfaces/surface_manager.h
+++ b/cc/surfaces/surface_manager.h
@@ -63,10 +63,14 @@ class CC_SURFACES_EXPORT SurfaceManager
// |surface_id| for the first time.
void SurfaceCreated(const SurfaceInfo& surface_info);
- // A frame for a surface satisfies a set of sequence numbers in a particular
- // id namespace.
- void DidSatisfySequences(const FrameSinkId& frame_sink_id,
- std::vector<uint32_t>* sequence);
+ // Require that the given sequence number must be satisfied (using
+ // SatisfySequence) before the given surface can be destroyed.
+ void RequireSequence(const SurfaceId& surface_id,
+ const SurfaceSequence& sequence);
+
+ // Satisfies the given sequence number. Once all sequence numbers that
+ // a surface depends on are satisfied, the surface can be destroyed.
+ void SatisfySequence(const SurfaceSequence& sequence);
void RegisterFrameSinkId(const FrameSinkId& frame_sink_id);

Powered by Google App Engine
This is Rietveld 408576698