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

Unified Diff: cc/ipc/display_compositor.mojom

Issue 2541683004: Add/remove surface references via MojoCompositorFrameSink. (Closed)
Patch Set: 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 | « cc/ipc/BUILD.gn ('k') | 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..79ee4c2d2b63e212d35ea9cb825623237e5978cb 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,10 @@ 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 compositor upon connection. Provides the top level
+ // root surface id that should reference display roots.
+ OnRootSurfaceId(cc.mojom.SurfaceId surface_id);
Fady Samuel 2016/12/04 23:30:12 OnDisplayCompositorCreated? "OnRootSurfaceId" doe
kylechar 2016/12/05 20:26:44 Done.
+
// 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 | « cc/ipc/BUILD.gn ('k') | cc/ipc/mojo_compositor_frame_sink.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698