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_sequence.mojom"; | 10 import "cc/ipc/surface_info.mojom"; |
11 import "gpu/ipc/common/surface_handle.mojom"; | 11 import "gpu/ipc/common/surface_handle.mojom"; |
12 import "mojo/common/time.mojom"; | 12 import "mojo/common/time.mojom"; |
13 import "ui/gfx/geometry/mojo/geometry.mojom"; | 13 import "ui/gfx/geometry/mojo/geometry.mojom"; |
14 import "ui/gfx/mojo/color_space.mojom"; | 14 import "ui/gfx/mojo/color_space.mojom"; |
15 | 15 |
16 // See ui/compositor/compositor.h: ContextFactoryPrivate. | 16 // See ui/compositor/compositor.h: ContextFactoryPrivate. |
17 // The DisplayPrivate is used by privileged clients to talk to cc::Display. | 17 // The DisplayPrivate is used by privileged clients to talk to cc::Display. |
18 // DisplayPrivate would eventually replace or be used by ContextFactoryPrivate. | 18 // DisplayPrivate would eventually replace or be used by ContextFactoryPrivate. |
19 interface DisplayPrivate { | 19 interface DisplayPrivate { |
20 SetDisplayVisible(bool visible); | 20 SetDisplayVisible(bool visible); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 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 | 65 // root surface id that should reference display roots. This will always be |
66 // the first message sent. | 66 // the first message sent. |
67 OnDisplayCompositorCreated(cc.mojom.SurfaceId root_surface_id); | 67 OnDisplayCompositorCreated(cc.mojom.SurfaceId root_surface_id); |
68 | 68 |
69 // Called by the display compositor immediately upon receiving a | 69 // Called by the display compositor immediately upon receiving a |
70 // CompositorFrame with a new SurfaceId for the first time. | 70 // CompositorFrame with a new SurfaceId for the first time. |
71 OnSurfaceCreated(cc.mojom.SurfaceId surface_id, | 71 OnSurfaceCreated(SurfaceInfo surface_info); |
72 gfx.mojom.Size frame_size, | |
73 float device_scale_factor); | |
74 }; | 72 }; |
OLD | NEW |