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

Unified Diff: cc/ipc/display_compositor.mojom

Issue 2541683004: Add/remove surface references via MojoCompositorFrameSink. (Closed)
Patch Set: Cleanup. Created 4 years 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/ipc/mojo_compositor_frame_sink.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/display_compositor.mojom
diff --git a/cc/ipc/display_compositor.mojom b/cc/ipc/display_compositor.mojom
index d8fab7a6763bd5a70fb02084d7af69a7310269b0..2df2c2a4749471a80641930f0efa830c22aec33b 100644
--- a/cc/ipc/display_compositor.mojom
+++ b/cc/ipc/display_compositor.mojom
@@ -29,15 +29,6 @@ interface DisplayCompositor {
cc.mojom.MojoCompositorFrameSink& compositor_frame_sink,
cc.mojom.MojoCompositorFrameSinkPrivate& compositor_frame_sink_private,
cc.mojom.MojoCompositorFrameSinkClient compositor_frame_sink_client);
-
- // TODO(fsamuel): This surface reference API is temporary. Surface references
- // should be bundled with CompositorFrames.
- AddRootSurfaceReference(cc.mojom.SurfaceId child_id);
- AddSurfaceReference(cc.mojom.SurfaceId parent_id,
- cc.mojom.SurfaceId child_id);
- RemoveRootSurfaceReference(cc.mojom.SurfaceId child_id);
- RemoveSurfaceReference(cc.mojom.SurfaceId parent_id,
- cc.mojom.SurfaceId child_id);
};
// The DisplayCompositorClient interface is implemented by the Display
@@ -45,6 +36,11 @@ interface DisplayCompositor {
// compositor. The display compositor host is either the browser process in
// Chrome or the window server process.
interface DisplayCompositorClient {
+ // Called by the display compostor when it is created. Provides the top level
+ // root surface id that should reference display roots. This will always be
+ // the first message sent.
+ OnDisplayCompositorCreated(cc.mojom.SurfaceId root_surface_id);
+
// Called by the display compositor immediately upon receiving a
// CompositorFrame with a new SurfaceId for the first time.
OnSurfaceCreated(cc.mojom.SurfaceId surface_id,
« no previous file with comments | « no previous file | cc/ipc/mojo_compositor_frame_sink.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698