| Index: cc/ipc/mojo_compositor_frame_sink.mojom
|
| diff --git a/cc/ipc/mojo_compositor_frame_sink.mojom b/cc/ipc/mojo_compositor_frame_sink.mojom
|
| index 284a470fc6319434cedcb0da1640d530648d16d7..87ddd3aff8b26a93f5ec411d2ba0fab588686b62 100644
|
| --- a/cc/ipc/mojo_compositor_frame_sink.mojom
|
| +++ b/cc/ipc/mojo_compositor_frame_sink.mojom
|
| @@ -10,6 +10,7 @@ import "cc/ipc/frame_sink_id.mojom";
|
| import "cc/ipc/local_frame_id.mojom";
|
| import "cc/ipc/surface_reference.mojom";
|
| import "cc/ipc/returned_resource.mojom";
|
| +import "cc/ipc/surface_sequence.mojom";
|
|
|
| // A MojoCompositorFrameSink is an interface for receiving CompositorFrame
|
| // structs. A CompositorFrame contains the complete output meant for display.
|
| @@ -42,6 +43,16 @@ interface MojoCompositorFrameSink {
|
| // that its resources gets returned in time.
|
| EvictFrame();
|
|
|
| + // TODO(staraz): Delete Require() and Satisfy() once surface references
|
| + // (CL 2541683004) are ready.
|
| + // Add the provided |sequence| as a destruction dependency of the
|
| + // surface associated with the provided |local_frame_id|.
|
| + Require(cc.mojom.LocalFrameId local_frame_id,
|
| + cc.mojom.SurfaceSequence sequence);
|
| +
|
| + // Mark the sequence as satisfied and garbage collect surfaces.
|
| + Satisfy(cc.mojom.SurfaceSequence sequence);
|
| +
|
| // TODO(fsamuel): ReadbackBitmap API would be useful here.
|
| };
|
|
|
|
|