Chromium Code Reviews| 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..98194434b0c9d9de6c00ec147b505a42c84acee6 100644 |
| --- a/cc/ipc/mojo_compositor_frame_sink.mojom |
| +++ b/cc/ipc/mojo_compositor_frame_sink.mojom |
| @@ -6,11 +6,15 @@ 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/copy_output_result.mojom"; |
| import "cc/ipc/frame_sink_id.mojom"; |
| import "cc/ipc/local_surface_id.mojom"; |
| import "cc/ipc/surface_reference.mojom"; |
| import "cc/ipc/returned_resource.mojom"; |
| import "cc/ipc/surface_sequence.mojom"; |
| +import "gpu/ipc/common/mailbox.mojom"; |
| +import "gpu/ipc/common/sync_token.mojom"; |
| // A MojoCompositorFrameSink is an interface for receiving CompositorFrame |
| // structs. A CompositorFrame contains the complete output meant for display. |
| @@ -47,6 +51,11 @@ interface MojoCompositorFrameSink { |
| // Mark the sequence as satisfied and garbage collect surfaces. |
| Satisfy(cc.mojom.SurfaceSequence sequence); |
| + RequestCopyOfSurface(cc.mojom.CopyOutputRequest request) |
| + => (cc.mojom.CopyOutputResult result); |
| + |
| + DeleteMailbox(gpu.mojom.Mailbox mailbox, gpu.mojom.SyncToken sync_token, bool is_lost); |
|
Fady Samuel
2017/02/06 17:13:48
This is way too generic, in my opinion. Why do we
danakj
2017/02/06 19:18:51
Same, CFS can transport resources but it doesn't m
Fady Samuel
2017/02/06 19:45:02
This sync token indicates when it's safe to delete
Saman Sami
2017/02/06 20:04:00
Can you explain how it should be? I'm basically tr
danakj
2017/02/06 20:09:15
I see, just call this ReleaseMailbox then. It does
danakj
2017/02/06 20:10:27
ReleaseMailboxForCopyOutputResult might work too i
|
| + |
| // TODO(fsamuel): ReadbackBitmap API would be useful here. |
|
Fady Samuel
2017/02/06 17:13:49
Delete this?
|
| }; |