OLD | NEW |
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 Loading... |
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 // Set up a BeginFrame relationship between two FrameSinkIds. In this case, |
| 62 // the child inherits the BeginFrameSource from the parent if it doesn't |
| 63 // already have a BeginFrameSource. |
| 64 RegisterFrameSinkHierarchy(cc.mojom.FrameSinkId parent_frame_sink_id, |
| 65 cc.mojom.FrameSinkId child_frame_sink_id); |
| 66 |
| 67 // Removes a BeginFrame relationship between two FrameSinkIds. |
| 68 UnregisterFrameSinkHierarchy(cc.mojom.FrameSinkId parent_frame_sink_id, |
| 69 cc.mojom.FrameSinkId child_frame_sink_id); |
60 }; | 70 }; |
61 | 71 |
62 // The DisplayCompositorClient interface is implemented by the Display | 72 // The DisplayCompositorClient interface is implemented by the Display |
63 // Compositor Host, a stable, and privileged peer service to the display | 73 // Compositor Host, a stable, and privileged peer service to the display |
64 // compositor. The display compositor host is either the browser process in | 74 // compositor. The display compositor host is either the browser process in |
65 // Chrome or the window server process. | 75 // Chrome or the window server process. |
66 interface DisplayCompositorClient { | 76 interface DisplayCompositorClient { |
67 // Called by the display compositor immediately upon receiving a | 77 // Called by the display compositor immediately upon receiving a |
68 // CompositorFrame with a new SurfaceId for the first time. | 78 // CompositorFrame with a new SurfaceId for the first time. |
69 OnSurfaceCreated(SurfaceInfo surface_info); | 79 OnSurfaceCreated(SurfaceInfo surface_info); |
70 }; | 80 }; |
OLD | NEW |