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

Unified Diff: cc/ipc/mojo_compositor_frame_sink.mojom

Issue 2676353002: MojoCompositorFrameSinkPrivate should support copy requests (Closed)
Patch Set: Remove callback Created 3 years, 10 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
« no previous file with comments | « no previous file | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698