| 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/mojo_compositor_frame_sink.mojom"; | 8 import "cc/ipc/mojo_compositor_frame_sink.mojom"; |
| 9 import "cc/ipc/surface_id.mojom"; | 9 import "cc/ipc/surface_id.mojom"; |
| 10 import "cc/ipc/surface_info.mojom"; | 10 import "cc/ipc/surface_info.mojom"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 cc.mojom.MojoCompositorFrameSink& compositor_frame_sink, | 54 cc.mojom.MojoCompositorFrameSink& compositor_frame_sink, |
| 55 cc.mojom.MojoCompositorFrameSinkPrivate& compositor_frame_sink_private, | 55 cc.mojom.MojoCompositorFrameSinkPrivate& compositor_frame_sink_private, |
| 56 cc.mojom.MojoCompositorFrameSinkClient compositor_frame_sink_client); | 56 cc.mojom.MojoCompositorFrameSinkClient compositor_frame_sink_client); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 // The DisplayCompositorClient interface is implemented by the Display | 59 // The DisplayCompositorClient interface is implemented by the Display |
| 60 // Compositor Host, a stable, and privileged peer service to the display | 60 // Compositor Host, a stable, and privileged peer service to the display |
| 61 // compositor. The display compositor host is either the browser process in | 61 // compositor. The display compositor host is either the browser process in |
| 62 // Chrome or the window server process. | 62 // Chrome or the window server process. |
| 63 interface DisplayCompositorClient { | 63 interface DisplayCompositorClient { |
| 64 // Called by the display compostor when it is created. Provides the top level | |
| 65 // root surface id that should reference display roots. This will always be | |
| 66 // the first message sent. | |
| 67 OnDisplayCompositorCreated(cc.mojom.SurfaceId root_surface_id); | |
| 68 | |
| 69 // Called by the display compositor immediately upon receiving a | 64 // Called by the display compositor immediately upon receiving a |
| 70 // CompositorFrame with a new SurfaceId for the first time. | 65 // CompositorFrame with a new SurfaceId for the first time. |
| 71 OnSurfaceCreated(SurfaceInfo surface_info); | 66 OnSurfaceCreated(SurfaceInfo surface_info); |
| 72 }; | 67 }; |
| OLD | NEW |