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

Side by Side Diff: cc/ipc/display_compositor.mojom

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Cleanup. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module cc.mojom; 5 module cc.mojom;
6 6
7 import "cc/ipc/frame_sink_id.mojom"; 7 import "cc/ipc/frame_sink_id.mojom";
8 import "cc/ipc/local_surface_id.mojom"; 8 import "cc/ipc/local_surface_id.mojom";
9 import "cc/ipc/mojo_compositor_frame_sink.mojom"; 9 import "cc/ipc/mojo_compositor_frame_sink.mojom";
10 import "cc/ipc/surface_id.mojom"; 10 import "cc/ipc/surface_id.mojom";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 associated DisplayPrivate& display_private); 50 associated DisplayPrivate& display_private);
51 51
52 // CreateCompositorFrameSink is used by unprivileged clients. 52 // CreateCompositorFrameSink is used by unprivileged clients.
53 // This CompositorFrameSink is not a root, and has to be parented by another 53 // This CompositorFrameSink is not a root, and has to be parented by another
54 // CompositorFrameSink in order to appear on screen. 54 // CompositorFrameSink in order to appear on screen.
55 CreateCompositorFrameSink( 55 CreateCompositorFrameSink(
56 cc.mojom.FrameSinkId frame_sink_id, 56 cc.mojom.FrameSinkId frame_sink_id,
57 cc.mojom.MojoCompositorFrameSink& compositor_frame_sink, 57 cc.mojom.MojoCompositorFrameSink& compositor_frame_sink,
58 cc.mojom.MojoCompositorFrameSinkPrivate& compositor_frame_sink_private, 58 cc.mojom.MojoCompositorFrameSinkPrivate& compositor_frame_sink_private,
59 cc.mojom.MojoCompositorFrameSinkClient compositor_frame_sink_client); 59 cc.mojom.MojoCompositorFrameSinkClient compositor_frame_sink_client);
60
61 // Drops the temporary reference for |surface_id|. This will get called when
62 // the DisplayCompositorClient doesn't think |surface_id| will be embedded.
63 DropTemporaryReference(cc.mojom.SurfaceId surface_id);
60 }; 64 };
61 65
62 // The DisplayCompositorClient interface is implemented by the Display 66 // The DisplayCompositorClient interface is implemented by the Display
63 // Compositor Host, a stable, and privileged peer service to the display 67 // Compositor Host, a stable, and privileged peer service to the display
64 // compositor. The display compositor host is either the browser process in 68 // compositor. The display compositor host is either the browser process in
65 // Chrome or the window server process. 69 // Chrome or the window server process.
66 interface DisplayCompositorClient { 70 interface DisplayCompositorClient {
67 // Called by the display compositor immediately upon receiving a 71 // Called by the display compositor immediately upon receiving a
68 // CompositorFrame with a new SurfaceId for the first time. 72 // CompositorFrame with a new SurfaceId for the first time.
69 OnSurfaceCreated(SurfaceInfo surface_info); 73 OnSurfaceCreated(SurfaceInfo surface_info);
70 }; 74 };
OLDNEW
« no previous file with comments | « no previous file | cc/ipc/mojo_compositor_frame_sink.mojom » ('j') | services/ui/surfaces/display_compositor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698