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 bf2e196f79956523a6f3e578a2decc796cd35959..4f4747a7a0ff7108d6be4e6dfaceb55a5c9f5db8 100644 |
--- a/cc/ipc/mojo_compositor_frame_sink.mojom |
+++ b/cc/ipc/mojo_compositor_frame_sink.mojom |
@@ -6,6 +6,7 @@ module cc.mojom; |
import "cc/ipc/begin_frame_args.mojom"; |
import "cc/ipc/compositor_frame.mojom"; |
+import "cc/ipc/copy_output_request.mojom"; |
import "cc/ipc/frame_sink_id.mojom"; |
import "cc/ipc/local_surface_id.mojom"; |
import "cc/ipc/surface_reference.mojom"; |
@@ -46,8 +47,6 @@ interface MojoCompositorFrameSink { |
// Mark the sequence as satisfied and garbage collect surfaces. |
Satisfy(cc.mojom.SurfaceSequence sequence); |
- |
- // TODO(fsamuel): ReadbackBitmap API would be useful here. |
}; |
interface MojoCompositorFrameSinkClient { |
@@ -77,4 +76,9 @@ interface MojoCompositorFrameSinkClient { |
interface MojoCompositorFrameSinkPrivate { |
AddChildFrameSink(FrameSinkId child_frame_sink_id); |
RemoveChildFrameSink(FrameSinkId child_frame_sink_id); |
+ |
+ // Requests that the renderer send back a copy of the surface that this |
+ // CompositorFrameSink submits to. The result can be in form of a bitmap |
+ // or a texture. See cc::CopyOutputRequest. |
+ RequestCopyOfSurface(cc.mojom.CopyOutputRequest request); |
}; |