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 "transform.proto"; | 10 import "transform.proto"; |
10 import "vector2df.proto"; | 11 import "vector2df.proto"; |
11 | 12 |
12 option optimize_for = LITE_RUNTIME; | 13 option optimize_for = LITE_RUNTIME; |
13 | 14 |
14 package cc.proto; | 15 package cc.proto; |
15 | 16 |
16 // The messages declared in this file correspond to the classes declared in | 17 // The messages declared in this file correspond to the classes declared in |
17 // cc/trees/property_tree.h | 18 // cc/trees/property_tree.h |
18 | 19 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 optional bool has_render_surface = 3; | 85 optional bool has_render_surface = 3; |
85 optional bool has_copy_request = 4; | 86 optional bool has_copy_request = 4; |
86 optional bool has_background_filters = 5; | 87 optional bool has_background_filters = 5; |
87 optional bool is_drawn = 6; | 88 optional bool is_drawn = 6; |
88 optional bool has_animated_opacity = 7; | 89 optional bool has_animated_opacity = 7; |
89 optional int64 num_copy_requests_in_subtree = 8; | 90 optional int64 num_copy_requests_in_subtree = 8; |
90 optional int64 transform_id = 9; | 91 optional int64 transform_id = 9; |
91 optional int64 clip_id = 10; | 92 optional int64 clip_id = 10; |
92 } | 93 } |
93 | 94 |
| 95 // Proto for struct ScrollNodeData |
94 message ScrollNodeData { | 96 message ScrollNodeData { |
95 optional bool scrollable = 1; | 97 optional bool scrollable = 1; |
96 optional int32 main_thread_scrolling_reasons = 2; | 98 optional int32 main_thread_scrolling_reasons = 2; |
97 optional bool contains_non_fast_scrollable_region = 3; | 99 optional bool contains_non_fast_scrollable_region = 3; |
98 optional int64 transform_id = 4; | 100 optional Size scroll_clip_layer_bounds = 4; |
| 101 optional Size bounds = 5; |
| 102 optional bool envelope_page_scale_layer_with_clip_layer = 6; |
| 103 optional bool is_inner_viewport_scroll_layer = 7; |
| 104 optional bool is_outer_viewport_scroll_layer = 8; |
| 105 optional bool is_inner_viewport_container_layer = 9; |
| 106 optional bool is_outer_viewport_container_layer = 10; |
99 } | 107 } |
100 | 108 |
101 // This defines the proto used for all types of struct TreeNode. | 109 // This defines the proto used for all types of struct TreeNode. |
102 message TreeNode { | 110 message TreeNode { |
103 // The following fields are the base TreeNode properties. This list | 111 // The following fields are the base TreeNode properties. This list |
104 // corresponds to the data members from struct TreeNode. | 112 // corresponds to the data members from struct TreeNode. |
105 optional int64 id = 1; | 113 optional int64 id = 1; |
106 optional int64 parent_id = 2; | 114 optional int64 parent_id = 2; |
107 optional int64 owner_id = 3; | 115 optional int64 owner_id = 3; |
108 | 116 |
(...skipping 27 matching lines...) Expand all Loading... |
136 // of this property tree. | 144 // of this property tree. |
137 optional TransformTreeData transform_tree_data = 1000; | 145 optional TransformTreeData transform_tree_data = 1000; |
138 } | 146 } |
139 | 147 |
140 // Proto for data members of class TransformTree. | 148 // Proto for data members of class TransformTree. |
141 message TransformTreeData { | 149 message TransformTreeData { |
142 optional bool source_to_parent_updates_allowed = 1; | 150 optional bool source_to_parent_updates_allowed = 1; |
143 optional float page_scale_factor = 2; | 151 optional float page_scale_factor = 2; |
144 optional float device_scale_factor = 3; | 152 optional float device_scale_factor = 3; |
145 optional float device_transform_scale_factor = 4; | 153 optional float device_transform_scale_factor = 4; |
146 optional Vector2dF inner_viewport_bounds_delta = 5; | |
147 optional Vector2dF outer_viewport_bounds_delta = 6; | |
148 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7 | 154 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7 |
149 [packed = true]; | 155 [packed = true]; |
150 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8 | 156 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8 |
151 [packed = true]; | 157 [packed = true]; |
152 } | 158 } |
153 | 159 |
154 // Proto for class PropertyTrees. | 160 // Proto for class PropertyTrees. |
| 161 // NEXT ID: 11 |
155 message PropertyTrees { | 162 message PropertyTrees { |
156 optional PropertyTree transform_tree = 1; | 163 optional PropertyTree transform_tree = 1; |
157 optional PropertyTree effect_tree = 2; | 164 optional PropertyTree effect_tree = 2; |
158 optional PropertyTree clip_tree = 3; | 165 optional PropertyTree clip_tree = 3; |
159 optional PropertyTree scroll_tree = 7; | 166 optional PropertyTree scroll_tree = 7; |
160 | 167 |
161 optional bool needs_rebuild = 4; | 168 optional bool needs_rebuild = 4; |
162 optional bool non_root_surfaces_enabled = 5; | 169 optional bool non_root_surfaces_enabled = 5; |
163 optional int64 sequence_number = 6; | 170 optional int64 sequence_number = 6; |
| 171 |
| 172 optional Vector2dF inner_viewport_container_bounds_delta = 8; |
| 173 optional Vector2dF outer_viewport_container_bounds_delta = 9; |
| 174 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; |
164 } | 175 } |
OLD | NEW |