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

Unified Diff: cc/ipc/mojo_compositor_frame_sink.mojom

Issue 2527443002: Display Compositor: Allocate LocalFrameId in client. (Closed)
Patch Set: Rebased + Restored BUILD files Created 4 years, 1 month 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 | content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.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 58f69d61916f7a4752e04a3dfd99b940544448bd..cedd96615e4edc5190470ac314d472cb60c4fd94 100644
--- a/cc/ipc/mojo_compositor_frame_sink.mojom
+++ b/cc/ipc/mojo_compositor_frame_sink.mojom
@@ -7,6 +7,7 @@ module cc.mojom;
import "cc/ipc/begin_frame_args.mojom";
import "cc/ipc/compositor_frame.mojom";
import "cc/ipc/frame_sink_id.mojom";
+import "cc/ipc/local_frame_id.mojom";
import "cc/ipc/returned_resource.mojom";
// A MojoCompositorFrameSink is an interface for receiving CompositorFrame
@@ -21,11 +22,14 @@ interface MojoCompositorFrameSink {
// Submits a CompositorFrame to the display compositor that will be presented
// to screen the next time frames from all CompositorFrameSinks are aggregated
- // to produce a display CompositorFrame.
+ // to produce a display CompositorFrame. If a client wishes to allocate a new
+ // surface (e.g. during resize), then it can simply allocate a new
+ // |local_frame_id|.
// For successful swaps, the implementation must call
// DidReceiveCompositorFrameAck() asynchronously when the frame has been
// processed in order to unthrottle the next frame.
- SubmitCompositorFrame(cc.mojom.CompositorFrame frame);
+ SubmitCompositorFrame(cc.mojom.LocalFrameId local_frame_id,
+ cc.mojom.CompositorFrame frame);
// TODO(fsamuel): ReadbackBitmap API would be useful here.
};
« no previous file with comments | « no previous file | content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698