| 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 "rectf.proto"; | 7 import "rectf.proto"; |
| 8 import "scroll_offset.proto"; | 8 import "scroll_offset.proto"; |
| 9 import "size.proto"; | 9 import "size.proto"; |
| 10 import "synced_property.proto"; | 10 import "synced_property.proto"; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 optional int64 target_id = 5; | 82 optional int64 target_id = 5; |
| 83 optional bool applies_local_clip = 6; | 83 optional bool applies_local_clip = 6; |
| 84 optional bool layer_clipping_uses_only_local_clip = 7; | 84 optional bool layer_clipping_uses_only_local_clip = 7; |
| 85 optional bool target_is_clipped = 8; | 85 optional bool target_is_clipped = 8; |
| 86 optional bool layers_are_clipped = 9; | 86 optional bool layers_are_clipped = 9; |
| 87 optional bool layers_are_clipped_when_surfaces_disabled = 10; | 87 optional bool layers_are_clipped_when_surfaces_disabled = 10; |
| 88 optional bool resets_clip = 11; | 88 optional bool resets_clip = 11; |
| 89 } | 89 } |
| 90 | 90 |
| 91 // Proto for struct EffectNodeData. | 91 // Proto for struct EffectNodeData. |
| 92 // NEXT ID: 17 | 92 // NEXT ID: 20 |
| 93 message EffectNodeData { | 93 message EffectNodeData { |
| 94 optional float opacity = 1; | 94 optional float opacity = 1; |
| 95 optional float screen_space_opacity = 2; | 95 optional float screen_space_opacity = 2; |
| 96 optional bool has_render_surface = 3; | 96 optional bool has_render_surface = 3; |
| 97 optional bool has_copy_request = 4; | 97 optional bool has_copy_request = 4; |
| 98 optional bool has_background_filters = 5; | 98 optional bool has_background_filters = 5; |
| 99 optional bool hidden_by_backface_visibility = 14; | 99 optional bool hidden_by_backface_visibility = 14; |
| 100 optional bool double_sided = 13; | 100 optional bool double_sided = 13; |
| 101 optional bool is_drawn = 6; | 101 optional bool is_drawn = 6; |
| 102 optional bool subtree_hidden = 15; | 102 optional bool subtree_hidden = 15; |
| 103 optional bool has_potential_opacity_animation = 7; | 103 optional bool has_potential_opacity_animation = 7; |
| 104 optional bool is_currently_animating_opacity = 16; | 104 optional bool is_currently_animating_opacity = 16; |
| 105 optional bool effect_changed = 11; | 105 optional bool effect_changed = 11; |
| 106 optional int64 num_copy_requests_in_subtree = 8; | 106 optional int64 num_copy_requests_in_subtree = 8; |
| 107 optional int64 transform_id = 9; | 107 optional int64 transform_id = 9; |
| 108 optional int64 clip_id = 10; | 108 optional int64 clip_id = 10; |
| 109 optional int64 target_id = 12; | 109 optional int64 target_id = 12; |
| 110 optional int64 mask_layer_id = 17; |
| 111 optional int64 replica_layer_id = 18; |
| 112 optional int64 replica_mask_layer_id = 19; |
| 110 } | 113 } |
| 111 | 114 |
| 112 // Proto for struct ScrollNodeData | 115 // Proto for struct ScrollNodeData |
| 113 // NEXT ID: 15 | 116 // NEXT ID: 15 |
| 114 message ScrollNodeData { | 117 message ScrollNodeData { |
| 115 optional bool scrollable = 1; | 118 optional bool scrollable = 1; |
| 116 optional int32 main_thread_scrolling_reasons = 2; | 119 optional int32 main_thread_scrolling_reasons = 2; |
| 117 optional bool contains_non_fast_scrollable_region = 3; | 120 optional bool contains_non_fast_scrollable_region = 3; |
| 118 optional Size scroll_clip_layer_bounds = 4; | 121 optional Size scroll_clip_layer_bounds = 4; |
| 119 optional Size bounds = 5; | 122 optional Size bounds = 5; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // corresponds to the data members from class PropertyTree. | 162 // corresponds to the data members from class PropertyTree. |
| 160 optional PropertyType property_type = 1; | 163 optional PropertyType property_type = 1; |
| 161 repeated TreeNode nodes = 2; | 164 repeated TreeNode nodes = 2; |
| 162 optional bool needs_update = 3; | 165 optional bool needs_update = 3; |
| 163 | 166 |
| 164 // The following fields denote the data members for each subclass of | 167 // The following fields denote the data members for each subclass of |
| 165 // PropertyTree. Only one of these fields should be set, depending on the type | 168 // PropertyTree. Only one of these fields should be set, depending on the type |
| 166 // of this property tree. | 169 // of this property tree. |
| 167 optional TransformTreeData transform_tree_data = 1000; | 170 optional TransformTreeData transform_tree_data = 1000; |
| 168 optional ScrollTreeData scroll_tree_data = 1001; | 171 optional ScrollTreeData scroll_tree_data = 1001; |
| 172 optional EffectTreeData effect_tree_data = 1002; |
| 169 } | 173 } |
| 170 | 174 |
| 171 message ScrollOffsetMapEntry { | 175 message ScrollOffsetMapEntry { |
| 172 required int64 layer_id = 1; | 176 required int64 layer_id = 1; |
| 173 optional SyncedProperty scroll_offset = 2; | 177 optional SyncedProperty scroll_offset = 2; |
| 174 } | 178 } |
| 175 | 179 |
| 176 // Proto for data members of class ScrollTree | 180 // Proto for data members of class ScrollTree |
| 177 message ScrollTreeData { | 181 message ScrollTreeData { |
| 178 optional int64 currently_scrolling_node_id = 1; | 182 optional int64 currently_scrolling_node_id = 1; |
| 179 repeated ScrollOffsetMapEntry layer_id_to_scroll_offset_map = 2; | 183 repeated ScrollOffsetMapEntry layer_id_to_scroll_offset_map = 2; |
| 180 } | 184 } |
| 181 | 185 |
| 182 // Proto for data members of class TransformTree. | 186 // Proto for data members of class TransformTree. |
| 183 message TransformTreeData { | 187 message TransformTreeData { |
| 184 optional bool source_to_parent_updates_allowed = 1; | 188 optional bool source_to_parent_updates_allowed = 1; |
| 185 optional float page_scale_factor = 2; | 189 optional float page_scale_factor = 2; |
| 186 optional float device_scale_factor = 3; | 190 optional float device_scale_factor = 3; |
| 187 optional float device_transform_scale_factor = 4; | 191 optional float device_transform_scale_factor = 4; |
| 188 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7 | 192 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7 |
| 189 [packed = true]; | 193 [packed = true]; |
| 190 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8 | 194 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8 |
| 191 [packed = true]; | 195 [packed = true]; |
| 192 repeated TransformCachedNodeData cached_data = 9; | 196 repeated TransformCachedNodeData cached_data = 9; |
| 193 } | 197 } |
| 194 | 198 |
| 199 // Proto for data members of class EffectTree. |
| 200 message EffectTreeData { |
| 201 repeated int64 mask_replica_layer_ids = 1 [packed = true]; |
| 202 } |
| 203 |
| 195 // Proto for class PropertyTrees. | 204 // Proto for class PropertyTrees. |
| 196 // NEXT ID: 16 | 205 // NEXT ID: 16 |
| 197 message PropertyTrees { | 206 message PropertyTrees { |
| 198 optional PropertyTree transform_tree = 1; | 207 optional PropertyTree transform_tree = 1; |
| 199 optional PropertyTree effect_tree = 2; | 208 optional PropertyTree effect_tree = 2; |
| 200 optional PropertyTree clip_tree = 3; | 209 optional PropertyTree clip_tree = 3; |
| 201 optional PropertyTree scroll_tree = 7; | 210 optional PropertyTree scroll_tree = 7; |
| 202 | 211 |
| 203 optional bool needs_rebuild = 4; | 212 optional bool needs_rebuild = 4; |
| 204 optional bool non_root_surfaces_enabled = 5; | 213 optional bool non_root_surfaces_enabled = 5; |
| 205 optional bool changed = 11; | 214 optional bool changed = 11; |
| 206 optional bool full_tree_damaged = 12; | 215 optional bool full_tree_damaged = 12; |
| 207 optional int64 sequence_number = 6; | 216 optional int64 sequence_number = 6; |
| 208 optional bool is_main_thread = 13; | 217 optional bool is_main_thread = 13; |
| 209 optional bool is_active = 14; | 218 optional bool is_active = 14; |
| 210 | 219 |
| 211 optional Vector2dF inner_viewport_container_bounds_delta = 8; | 220 optional Vector2dF inner_viewport_container_bounds_delta = 8; |
| 212 optional Vector2dF outer_viewport_container_bounds_delta = 9; | 221 optional Vector2dF outer_viewport_container_bounds_delta = 9; |
| 213 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; | 222 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; |
| 214 repeated int64 always_use_active_tree_opacity_effect_ids = 15 [packed = true]; | 223 repeated int64 always_use_active_tree_opacity_effect_ids = 15 [packed = true]; |
| 215 } | 224 } |
| OLD | NEW |