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 "element_id.proto"; | 7 import "element_id.proto"; |
| 8 import "layer_sticky_position_constraint.proto"; |
8 import "rectf.proto"; | 9 import "rectf.proto"; |
9 import "scroll_offset.proto"; | 10 import "scroll_offset.proto"; |
10 import "size.proto"; | 11 import "size.proto"; |
11 import "skxfermode.proto"; | 12 import "skxfermode.proto"; |
12 import "synced_property.proto"; | 13 import "synced_property.proto"; |
13 import "transform.proto"; | 14 import "transform.proto"; |
14 import "vector2df.proto"; | 15 import "vector2df.proto"; |
15 | 16 |
16 option optimize_for = LITE_RUNTIME; | 17 option optimize_for = LITE_RUNTIME; |
17 | 18 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Proto for TransformCachedNodeData | 62 // Proto for TransformCachedNodeData |
62 message TransformCachedNodeData { | 63 message TransformCachedNodeData { |
63 optional Transform from_target = 1; | 64 optional Transform from_target = 1; |
64 optional Transform to_target = 2; | 65 optional Transform to_target = 2; |
65 optional Transform from_screen = 3; | 66 optional Transform from_screen = 3; |
66 optional Transform to_screen = 4; | 67 optional Transform to_screen = 4; |
67 optional int64 target_id = 5; | 68 optional int64 target_id = 5; |
68 optional int64 content_target_id = 6; | 69 optional int64 content_target_id = 6; |
69 } | 70 } |
70 | 71 |
| 72 // Proto for StickyPositionNodeData |
| 73 message StickyPositionNodeData { |
| 74 optional int64 scroll_ancestor = 1; |
| 75 optional LayerStickyPositionConstraint constraints = 2; |
| 76 optional Vector2dF main_thread_offset = 3; |
| 77 } |
| 78 |
71 // Proto for struct ClipNodeData. | 79 // Proto for struct ClipNodeData. |
72 // NEXT ID: 13 | 80 // NEXT ID: 13 |
73 message ClipNodeData { | 81 message ClipNodeData { |
74 optional RectF clip = 1; | 82 optional RectF clip = 1; |
75 optional RectF combined_clip_in_target_space = 2; | 83 optional RectF combined_clip_in_target_space = 2; |
76 optional RectF clip_in_target_space = 3; | 84 optional RectF clip_in_target_space = 3; |
77 | 85 |
78 optional int64 transform_id = 4; | 86 optional int64 transform_id = 4; |
79 optional int64 target_transform_id = 5; | 87 optional int64 target_transform_id = 5; |
80 optional int64 target_effect_id = 12; | 88 optional int64 target_effect_id = 12; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 message TransformTreeData { | 200 message TransformTreeData { |
193 optional bool source_to_parent_updates_allowed = 1; | 201 optional bool source_to_parent_updates_allowed = 1; |
194 optional float page_scale_factor = 2; | 202 optional float page_scale_factor = 2; |
195 optional float device_scale_factor = 3; | 203 optional float device_scale_factor = 3; |
196 optional float device_transform_scale_factor = 4; | 204 optional float device_transform_scale_factor = 4; |
197 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7 | 205 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7 |
198 [packed = true]; | 206 [packed = true]; |
199 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8 | 207 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8 |
200 [packed = true]; | 208 [packed = true]; |
201 repeated TransformCachedNodeData cached_data = 9; | 209 repeated TransformCachedNodeData cached_data = 9; |
| 210 repeated StickyPositionNodeData sticky_position_data = 10; |
202 } | 211 } |
203 | 212 |
204 // Proto for data members of class EffectTree. | 213 // Proto for data members of class EffectTree. |
205 message EffectTreeData { | 214 message EffectTreeData { |
206 repeated int64 mask_replica_layer_ids = 1 [packed = true]; | 215 repeated int64 mask_replica_layer_ids = 1 [packed = true]; |
207 } | 216 } |
208 | 217 |
209 // Proto for class PropertyTrees. | 218 // Proto for class PropertyTrees. |
210 // NEXT ID: 17 | 219 // NEXT ID: 17 |
211 message PropertyTrees { | 220 message PropertyTrees { |
212 optional PropertyTree transform_tree = 1; | 221 optional PropertyTree transform_tree = 1; |
213 optional PropertyTree effect_tree = 2; | 222 optional PropertyTree effect_tree = 2; |
214 optional PropertyTree clip_tree = 3; | 223 optional PropertyTree clip_tree = 3; |
215 optional PropertyTree scroll_tree = 7; | 224 optional PropertyTree scroll_tree = 7; |
216 | 225 |
217 optional bool needs_rebuild = 4; | 226 optional bool needs_rebuild = 4; |
218 optional bool non_root_surfaces_enabled = 5; | 227 optional bool non_root_surfaces_enabled = 5; |
219 optional bool changed = 11; | 228 optional bool changed = 11; |
220 optional bool full_tree_damaged = 12; | 229 optional bool full_tree_damaged = 12; |
221 optional int64 sequence_number = 6; | 230 optional int64 sequence_number = 6; |
222 optional bool is_main_thread = 13; | 231 optional bool is_main_thread = 13; |
223 optional bool is_active = 14; | 232 optional bool is_active = 14; |
224 optional bool verify_transform_tree_calculations = 16; | 233 optional bool verify_transform_tree_calculations = 16; |
225 | 234 |
226 optional Vector2dF inner_viewport_container_bounds_delta = 8; | 235 optional Vector2dF inner_viewport_container_bounds_delta = 8; |
227 optional Vector2dF outer_viewport_container_bounds_delta = 9; | 236 optional Vector2dF outer_viewport_container_bounds_delta = 9; |
228 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; | 237 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; |
229 repeated int64 always_use_active_tree_opacity_effect_ids = 15 [packed = true]; | 238 repeated int64 always_use_active_tree_opacity_effect_ids = 15 [packed = true]; |
230 } | 239 } |
OLD | NEW |