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

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

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: Rebase. Created 3 years, 9 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
« no previous file with comments | « no previous file | cc/ipc/mojo_compositor_frame_sink.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Set up a BeginFrame relationship between two FrameSinkIds. In this case, 61 // Set up a BeginFrame relationship between two FrameSinkIds. In this case,
62 // the child inherits the BeginFrameSource from the parent if it doesn't 62 // the child inherits the BeginFrameSource from the parent if it doesn't
63 // already have a BeginFrameSource. 63 // already have a BeginFrameSource.
64 RegisterFrameSinkHierarchy(cc.mojom.FrameSinkId parent_frame_sink_id, 64 RegisterFrameSinkHierarchy(cc.mojom.FrameSinkId parent_frame_sink_id,
65 cc.mojom.FrameSinkId child_frame_sink_id); 65 cc.mojom.FrameSinkId child_frame_sink_id);
66 66
67 // Removes a BeginFrame relationship between two FrameSinkIds. 67 // Removes a BeginFrame relationship between two FrameSinkIds.
68 UnregisterFrameSinkHierarchy(cc.mojom.FrameSinkId parent_frame_sink_id, 68 UnregisterFrameSinkHierarchy(cc.mojom.FrameSinkId parent_frame_sink_id,
69 cc.mojom.FrameSinkId child_frame_sink_id); 69 cc.mojom.FrameSinkId child_frame_sink_id);
70
71 // Drops the temporary reference for |surface_id|. This will get called when
72 // the DisplayCompositorClient doesn't think |surface_id| will be embedded.
73 DropTemporaryReference(cc.mojom.SurfaceId surface_id);
70 }; 74 };
71 75
72 // The DisplayCompositorClient interface is implemented by the Display 76 // The DisplayCompositorClient interface is implemented by the Display
73 // Compositor Host, a stable, and privileged peer service to the display 77 // Compositor Host, a stable, and privileged peer service to the display
74 // compositor. The display compositor host is either the browser process in 78 // compositor. The display compositor host is either the browser process in
75 // Chrome or the window server process. 79 // Chrome or the window server process.
76 interface DisplayCompositorClient { 80 interface DisplayCompositorClient {
77 // Called by the display compositor immediately upon receiving a 81 // Called by the display compositor immediately upon receiving a
78 // CompositorFrame with a new SurfaceId for the first time. 82 // CompositorFrame with a new SurfaceId for the first time.
79 OnSurfaceCreated(SurfaceInfo surface_info); 83 OnSurfaceCreated(SurfaceInfo surface_info);
80 }; 84 };
OLDNEW
« 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