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/begin_frame_args.mojom"; |
7 import "cc/ipc/selection.mojom"; | 8 import "cc/ipc/selection.mojom"; |
8 import "cc/ipc/surface_id.mojom"; | 9 import "cc/ipc/surface_id.mojom"; |
9 import "ui/events/mojo/latency_info.mojom"; | 10 import "ui/events/mojo/latency_info.mojom"; |
10 import "ui/gfx/geometry/mojo/geometry.mojom"; | 11 import "ui/gfx/geometry/mojo/geometry.mojom"; |
11 | 12 |
12 // See cc/output/compositor_frame_metadata.h. | 13 // See cc/output/compositor_frame_metadata.h. |
13 struct CompositorFrameMetadata { | 14 struct CompositorFrameMetadata { |
14 float device_scale_factor; | 15 float device_scale_factor; |
15 gfx.mojom.Vector2dF root_scroll_offset; | 16 gfx.mojom.Vector2dF root_scroll_offset; |
16 float page_scale_factor; | 17 float page_scale_factor; |
17 gfx.mojom.SizeF scrollable_viewport_size; | 18 gfx.mojom.SizeF scrollable_viewport_size; |
18 gfx.mojom.SizeF root_layer_size; | 19 gfx.mojom.SizeF root_layer_size; |
19 float min_page_scale_factor; | 20 float min_page_scale_factor; |
20 float max_page_scale_factor; | 21 float max_page_scale_factor; |
21 bool root_overflow_x_hidden; | 22 bool root_overflow_x_hidden; |
22 bool root_overflow_y_hidden; | 23 bool root_overflow_y_hidden; |
23 bool may_contain_video; | 24 bool may_contain_video; |
24 bool is_resourceless_software_draw_with_scroll_or_animation; | 25 bool is_resourceless_software_draw_with_scroll_or_animation; |
25 float top_controls_height; | 26 float top_controls_height; |
26 float top_controls_shown_ratio; | 27 float top_controls_shown_ratio; |
27 float bottom_controls_height; | 28 float bottom_controls_height; |
28 float bottom_controls_shown_ratio; | 29 float bottom_controls_shown_ratio; |
29 uint32 root_background_color; | 30 uint32 root_background_color; |
30 Selection selection; | 31 Selection selection; |
31 array<ui.mojom.LatencyInfo> latency_info; | 32 array<ui.mojom.LatencyInfo> latency_info; |
32 array<SurfaceId> referenced_surfaces; | 33 array<SurfaceId> referenced_surfaces; |
33 bool can_activate_before_dependencies; | 34 bool can_activate_before_dependencies; |
34 uint32 content_source_id; | 35 uint32 content_source_id; |
| 36 BeginFrameAck begin_frame_ack; |
35 }; | 37 }; |
OLD | NEW |