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, |