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

Unified Diff: cc/surfaces/surface_manager.h

Issue 2854163003: [cc] Plumb BeginFrameAcks through SurfaceManager to DisplayScheduler. (Closed)
Patch Set: track state in DisplayScheduler rather than Surface Created 3 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/surfaces/surface_manager.h
diff --git a/cc/surfaces/surface_manager.h b/cc/surfaces/surface_manager.h
index 293f4c8af80a037f6c3660f08cd02cb4b640e161..b79af559bf6049d52f338f6060c4e2f311422ac9 100644
--- a/cc/surfaces/surface_manager.h
+++ b/cc/surfaces/surface_manager.h
@@ -35,6 +35,9 @@
#endif
namespace cc {
+
+struct BeginFrameAck;
+struct BeginFrameArgs;
class BeginFrameSource;
class CompositorFrame;
class FrameSinkManagerClient;
@@ -101,6 +104,16 @@ class CC_SURFACES_EXPORT SurfaceManager {
// Called when |surface| is being destroyed.
void SurfaceDiscarded(Surface* surface);
+ // Called when a Surface's CompositorFrame producer has received a BeginFrame.
+ void SurfaceReceivedBeginFrame(const SurfaceId& surface_id,
+ const BeginFrameArgs& args);
+
+ // Called when a Surface's CompositorFrame producer has completed a BeginFrame
+ // either by submitting a CompositorFrame or confirming that it will not
+ // submit one.
+ void SurfaceFinishedBeginFrame(const SurfaceId& surface_id,
+ const BeginFrameAck& ack);
+
// Require that the given sequence number must be satisfied (using
// SatisfySequence) before the given surface can be destroyed.
void RequireSequence(const SurfaceId& surface_id,

Powered by Google App Engine
This is Rietveld 408576698