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"; |
11 import "cc/ipc/surface_info.mojom"; | 11 import "cc/ipc/surface_info.mojom"; |
12 import "gpu/ipc/common/surface_handle.mojom"; | 12 import "gpu/ipc/common/surface_handle.mojom"; |
13 import "mojo/common/time.mojom"; | 13 import "mojo/common/time.mojom"; |
14 import "ui/gfx/geometry/mojo/geometry.mojom"; | 14 import "ui/gfx/geometry/mojo/geometry.mojom"; |
15 import "ui/gfx/mojo/color_space.mojom"; | 15 import "ui/gfx/mojo/color_space.mojom"; |
16 | 16 |
17 // See ui/compositor/compositor.h: ContextFactoryPrivate. | 17 // See ui/compositor/compositor.h: ContextFactoryPrivate. |
18 // The DisplayPrivate is used by privileged clients to talk to cc::Display. | 18 // The DisplayPrivate is used by privileged clients to talk to cc::Display. |
19 // DisplayPrivate would eventually replace or be used by ContextFactoryPrivate. | 19 // DisplayPrivate would eventually replace or be used by ContextFactoryPrivate. |
20 interface DisplayPrivate { | 20 interface DisplayPrivate { |
21 SetDisplayVisible(bool visible); | 21 SetDisplayVisible(bool visible); |
22 ResizeDisplay(gfx.mojom.Size size_in_pixel); | 22 ResizeDisplay(gfx.mojom.Size size_in_pixel); |
23 SetDisplayColorSpace(gfx.mojom.ColorSpace color_space); | 23 SetDisplayColorSpace(gfx.mojom.ColorSpace color_space); |
24 SetOutputIsSecure(bool secure); | 24 SetOutputIsSecure(bool secure); |
25 SetLocalSurfaceId(cc.mojom.LocalSurfaceId local_surface_id, | 25 SetLocalSurfaceId(cc.mojom.LocalSurfaceId local_surface_id); |
26 float scale_factor); | 26 SetDeviceScaleFactor(float scale_factor); |
27 }; | 27 }; |
28 | 28 |
29 // The DisplayCompositor interface is a privileged interface that allows | 29 // The DisplayCompositor interface is a privileged interface that allows |
30 // the display compositor host (browser or window server) to create | 30 // the display compositor host (browser or window server) to create |
31 // CompositorFrameSinks. Clients acquire a CompositorFrameSink connection | 31 // CompositorFrameSinks. Clients acquire a CompositorFrameSink connection |
32 // through the display compositor host. Clients request a | 32 // through the display compositor host. Clients request a |
33 // MojoCompositorFrameSink interface, and implement a | 33 // MojoCompositorFrameSink interface, and implement a |
34 // MojoCompositorFrameSinkClient interface. The display compositor host | 34 // MojoCompositorFrameSinkClient interface. The display compositor host |
35 // holds one or more root CompositorFrameSinks that are tied to a valid | 35 // holds one or more root CompositorFrameSinks that are tied to a valid |
36 // |surface_handle|. All other CompositorFrameSinks are offscreen. FrameSinkIds | 36 // |surface_handle|. All other CompositorFrameSinks are offscreen. FrameSinkIds |
(...skipping 24 matching lines...) Expand all Loading... |
61 | 61 |
62 // The DisplayCompositorClient interface is implemented by the Display | 62 // The DisplayCompositorClient interface is implemented by the Display |
63 // Compositor Host, a stable, and privileged peer service to the display | 63 // Compositor Host, a stable, and privileged peer service to the display |
64 // compositor. The display compositor host is either the browser process in | 64 // compositor. The display compositor host is either the browser process in |
65 // Chrome or the window server process. | 65 // Chrome or the window server process. |
66 interface DisplayCompositorClient { | 66 interface DisplayCompositorClient { |
67 // Called by the display compositor immediately upon receiving a | 67 // Called by the display compositor immediately upon receiving a |
68 // CompositorFrame with a new SurfaceId for the first time. | 68 // CompositorFrame with a new SurfaceId for the first time. |
69 OnSurfaceCreated(SurfaceInfo surface_info); | 69 OnSurfaceCreated(SurfaceInfo surface_info); |
70 }; | 70 }; |
OLD | NEW |