OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 import "display_item.proto"; | 7 import "display_item.proto"; |
8 import "layer_position_constraint.proto"; | 8 import "layer_position_constraint.proto"; |
| 9 import "layer_sticky_position_constraint.proto"; |
9 import "point3f.proto"; | 10 import "point3f.proto"; |
10 import "pointf.proto"; | 11 import "pointf.proto"; |
11 import "recording_source.proto"; | 12 import "recording_source.proto"; |
12 import "region.proto"; | 13 import "region.proto"; |
13 import "rect.proto"; | 14 import "rect.proto"; |
14 import "scroll_offset.proto"; | 15 import "scroll_offset.proto"; |
15 import "size.proto"; | 16 import "size.proto"; |
16 import "skxfermode.proto"; | 17 import "skxfermode.proto"; |
17 import "transform.proto"; | 18 import "transform.proto"; |
18 import "vector2df.proto"; | 19 import "vector2df.proto"; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // for their specific properties. | 61 // for their specific properties. |
61 optional BaseLayerProperties base = 5; | 62 optional BaseLayerProperties base = 5; |
62 | 63 |
63 // Only one of these fields may be set per LayerProperties. | 64 // Only one of these fields may be set per LayerProperties. |
64 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See | 65 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See |
65 // crbug.com/570371. | 66 // crbug.com/570371. |
66 optional PictureLayerProperties picture = 6; | 67 optional PictureLayerProperties picture = 6; |
67 optional SolidColorScrollbarLayerProperties solid_scrollbar = 7; | 68 optional SolidColorScrollbarLayerProperties solid_scrollbar = 7; |
68 } | 69 } |
69 | 70 |
70 // NEXT ID: 56 | 71 // NEXT ID: 59 |
71 message BaseLayerProperties { | 72 message BaseLayerProperties { |
| 73 // The following fields mirror the data stored in Layer::Inputs ---------- |
| 74 optional Rect update_rect = 46; |
| 75 optional Size bounds = 3; |
| 76 optional bool masks_to_bounds = 14; |
| 77 optional float opacity = 22; |
| 78 optional SkXfermode.Mode blend_mode = 23; |
| 79 optional bool is_root_for_isolated_group = 24; |
| 80 optional bool contents_opaque = 21; |
| 81 optional PointF position = 25; |
| 82 optional Transform transform = 33; |
72 optional Point3F transform_origin = 1; | 83 optional Point3F transform_origin = 1; |
| 84 optional bool is_drawable = 56; |
| 85 optional bool double_sided = 8; |
| 86 optional bool should_flatten_transform = 28; |
| 87 optional int32 sorting_context_id = 35; |
| 88 optional bool use_parent_backface_visibility = 32; |
73 optional uint32 background_color = 2; | 89 optional uint32 background_color = 2; |
| 90 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. |
| 91 // repeated FilterOperation filters = 12; |
| 92 // repeated FilterOperation background_filters = 13; |
| 93 // optional PointF filters_origin = 57 |
| 94 optional ScrollOffset scroll_offset = 44; |
| 95 optional int32 scroll_clip_layer_id = 37; |
| 96 optional bool user_scrollable_horizontal = 38; |
| 97 optional bool user_scrollable_vertical = 39; |
| 98 optional uint32 main_thread_scrolling_reasons = 15; |
| 99 |
| 100 optional Region non_fast_scrollable_region = 18; |
| 101 // TODO(khushalsagar): Do we actually need these? Touch events are never sent |
| 102 // back to the engine. |
| 103 optional Region touch_event_handler_region = 19; |
| 104 |
| 105 optional bool is_container_for_fixed_position_layers = 26; |
| 106 optional LayerPositionConstraint position_constraint = 27; |
| 107 optional LayerStickyPositionConstraint sticky_position_constraint = 58; |
| 108 |
| 109 // ElementId and mutable properties ignored because these are used by |
| 110 // animations of Compositor-worker. |
| 111 |
| 112 optional int32 scroll_parent_id = 40; |
| 113 optional int32 clip_parent_id = 42; |
| 114 optional bool has_will_change_transform_hint = 48; |
| 115 optional bool hide_layer_and_subtree = 10; |
| 116 |
| 117 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. |
| 118 // repeated FilterOperation filters = 12; |
| 119 // repeated FilterOperation background_filters = 13; |
| 120 |
| 121 // ----------------------------------------------------------------------- |
| 122 |
| 123 // TODO(khushalsagar): Remove these when crbug.com/648442 |
74 optional uint32 safe_opaque_background_color = 53; | 124 optional uint32 safe_opaque_background_color = 53; |
75 optional Size bounds = 3; | |
76 optional int64 transform_free_index = 4; | 125 optional int64 transform_free_index = 4; |
77 optional int64 effect_tree_index = 5; | 126 optional int64 effect_tree_index = 5; |
78 optional int64 clip_tree_index = 6; | 127 optional int64 clip_tree_index = 6; |
79 optional int64 scroll_tree_index = 50; | 128 optional int64 scroll_tree_index = 50; |
80 optional Vector2dF offset_to_transform_parent = 7; | 129 optional Vector2dF offset_to_transform_parent = 7; |
81 optional bool double_sided = 8; | |
82 optional bool draws_content = 9; | 130 optional bool draws_content = 9; |
83 optional bool may_contain_video = 55; | 131 optional bool may_contain_video = 55; |
84 optional bool hide_layer_and_subtree = 10; | |
85 optional bool subtree_property_changed = 47; | 132 optional bool subtree_property_changed = 47; |
86 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. | |
87 // repeated FilterOperation filters = 12; | |
88 // repeated FilterOperation background_filters = 13; | |
89 optional bool masks_to_bounds = 14; | |
90 optional uint32 main_thread_scrolling_reasons = 15; | |
91 optional bool have_scroll_event_handlers = 17; | 133 optional bool have_scroll_event_handlers = 17; |
92 optional Region non_fast_scrollable_region = 18; | |
93 optional Region touch_event_handler_region = 19; | |
94 optional bool contents_opaque = 21; | |
95 optional float opacity = 22; | |
96 optional SkXfermode.Mode blend_mode = 23; | |
97 optional bool is_root_for_isolated_group = 24; | |
98 optional PointF position = 25; | |
99 optional bool is_container_for_fixed_position_layers = 26; | |
100 optional LayerPositionConstraint position_constraint = 27; | |
101 optional bool should_flatten_transform = 28; | |
102 optional bool should_flatten_transform_from_property_tree = 29; | 134 optional bool should_flatten_transform_from_property_tree = 29; |
103 optional int32 num_layer_or_descendants_with_copy_request = 30; | 135 optional int32 num_layer_or_descendants_with_copy_request = 30; |
104 optional SkXfermode.Mode draw_blend_mode = 31; | 136 optional SkXfermode.Mode draw_blend_mode = 31; |
105 optional bool use_parent_backface_visibility = 32; | |
106 optional bool use_local_transform_for_backface_visibility = 51; | 137 optional bool use_local_transform_for_backface_visibility = 51; |
107 optional bool should_check_backface_visibility = 52; | 138 optional bool should_check_backface_visibility = 52; |
108 optional Transform transform = 33; | |
109 optional bool transform_is_invertible = 34; | 139 optional bool transform_is_invertible = 34; |
110 optional int32 sorting_context_id = 35; | |
111 optional int32 num_descendants_that_draw_content = 36; | 140 optional int32 num_descendants_that_draw_content = 36; |
112 optional bool has_will_change_transform_hint = 48; | |
113 | |
114 optional int32 scroll_clip_layer_id = 37; | |
115 optional bool user_scrollable_horizontal = 38; | |
116 optional bool user_scrollable_vertical = 39; | |
117 | |
118 optional int32 scroll_parent_id = 40; | |
119 repeated int32 scroll_children_ids = 41; | 141 repeated int32 scroll_children_ids = 41; |
120 | |
121 optional int32 clip_parent_id = 42; | |
122 repeated int32 clip_children_ids = 43; | 142 repeated int32 clip_children_ids = 43; |
123 | 143 |
124 optional ScrollOffset scroll_offset = 44; | |
125 | |
126 optional Rect update_rect = 46; | |
127 | |
128 // TODO(nyquist): Figure out what to do with LayerAnimationController. | 144 // TODO(nyquist): Figure out what to do with LayerAnimationController. |
129 // optional LayerAnimationController layer_animation_controller = ???; | 145 // optional LayerAnimationController layer_animation_controller = ???; |
130 } | 146 } |
131 | 147 |
132 message PictureLayerProperties { | 148 message PictureLayerProperties { |
133 optional RecordingSource recording_source = 1; | 149 optional RecordingSource recording_source = 1; |
134 optional Region invalidation = 2; | 150 optional Region invalidation = 2; |
135 optional Rect last_updated_visible_layer_rect = 3; | 151 optional Rect last_updated_visible_layer_rect = 3; |
136 optional bool is_mask = 4; | 152 optional bool is_mask = 4; |
137 optional bool nearest_neighbor = 5; | 153 optional bool nearest_neighbor = 5; |
138 | 154 |
139 optional int64 update_source_frame_number = 6; | 155 optional int64 update_source_frame_number = 6; |
140 | 156 |
141 optional Rect recorded_viewport = 7; | 157 optional Rect recorded_viewport = 7; |
142 optional DisplayItemList display_list = 8; | 158 optional DisplayItemList display_list = 8; |
143 } | 159 } |
144 | 160 |
145 message SolidColorScrollbarLayerProperties { | 161 message SolidColorScrollbarLayerProperties { |
146 enum ScrollbarOrientation { | 162 enum ScrollbarOrientation { |
147 HORIZONTAL = 0; | 163 HORIZONTAL = 0; |
148 VERTICAL = 1; | 164 VERTICAL = 1; |
149 }; | 165 }; |
150 | 166 |
151 optional int32 scroll_layer_id = 1; | 167 optional int32 scroll_layer_id = 1; |
152 optional int32 thumb_thickness = 2; | 168 optional int32 thumb_thickness = 2; |
153 optional int32 track_start = 3; | 169 optional int32 track_start = 3; |
154 optional bool is_left_side_vertical_scrollbar = 4; | 170 optional bool is_left_side_vertical_scrollbar = 4; |
155 optional ScrollbarOrientation orientation = 5; | 171 optional ScrollbarOrientation orientation = 5; |
156 } | 172 } |
OLD | NEW |