Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: cc/proto/property_tree.proto

Issue 1736073002: cc: Move SyncedScrollOffset to scroll tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and add comment Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/proto/BUILD.gn ('k') | cc/proto/synced_property.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "transform.proto"; 11 import "transform.proto";
11 import "vector2df.proto"; 12 import "vector2df.proto";
12 13
13 option optimize_for = LITE_RUNTIME; 14 option optimize_for = LITE_RUNTIME;
14 15
15 package cc.proto; 16 package cc.proto;
16 17
17 // The messages declared in this file correspond to the classes declared in 18 // The messages declared in this file correspond to the classes declared in
18 // cc/trees/property_tree.h 19 // cc/trees/property_tree.h
19 20
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 repeated TreeNode nodes = 2; 150 repeated TreeNode nodes = 2;
150 optional bool needs_update = 3; 151 optional bool needs_update = 3;
151 152
152 // The following fields denote the data members for each subclass of 153 // The following fields denote the data members for each subclass of
153 // PropertyTree. Only one of these fields should be set, depending on the type 154 // PropertyTree. Only one of these fields should be set, depending on the type
154 // of this property tree. 155 // of this property tree.
155 optional TransformTreeData transform_tree_data = 1000; 156 optional TransformTreeData transform_tree_data = 1000;
156 optional ScrollTreeData scroll_tree_data = 1001; 157 optional ScrollTreeData scroll_tree_data = 1001;
157 } 158 }
158 159
160 message ScrollOffsetMapEntry {
161 required int64 layer_id = 1;
162 optional SyncedProperty scroll_offset = 2;
163 }
164
159 // Proto for data members of class ScrollTree 165 // Proto for data members of class ScrollTree
160 message ScrollTreeData { 166 message ScrollTreeData {
161 optional int64 currently_scrolling_node_id = 1; 167 optional int64 currently_scrolling_node_id = 1;
168 repeated ScrollOffsetMapEntry layer_id_to_scroll_offset_map = 2;
162 } 169 }
163 170
164 // Proto for data members of class TransformTree. 171 // Proto for data members of class TransformTree.
165 message TransformTreeData { 172 message TransformTreeData {
166 optional bool source_to_parent_updates_allowed = 1; 173 optional bool source_to_parent_updates_allowed = 1;
167 optional float page_scale_factor = 2; 174 optional float page_scale_factor = 2;
168 optional float device_scale_factor = 3; 175 optional float device_scale_factor = 3;
169 optional float device_transform_scale_factor = 4; 176 optional float device_transform_scale_factor = 4;
170 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7 177 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7
171 [packed = true]; 178 [packed = true];
172 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8 179 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8
173 [packed = true]; 180 [packed = true];
174 } 181 }
175 182
176 // Proto for class PropertyTrees. 183 // Proto for class PropertyTrees.
177 // NEXT ID: 13 184 // NEXT ID: 14
178 message PropertyTrees { 185 message PropertyTrees {
179 optional PropertyTree transform_tree = 1; 186 optional PropertyTree transform_tree = 1;
180 optional PropertyTree effect_tree = 2; 187 optional PropertyTree effect_tree = 2;
181 optional PropertyTree clip_tree = 3; 188 optional PropertyTree clip_tree = 3;
182 optional PropertyTree scroll_tree = 7; 189 optional PropertyTree scroll_tree = 7;
183 190
184 optional bool needs_rebuild = 4; 191 optional bool needs_rebuild = 4;
185 optional bool non_root_surfaces_enabled = 5; 192 optional bool non_root_surfaces_enabled = 5;
186 optional bool changed = 11; 193 optional bool changed = 11;
187 optional bool full_tree_damaged = 12; 194 optional bool full_tree_damaged = 12;
188 optional int64 sequence_number = 6; 195 optional int64 sequence_number = 6;
196 optional bool is_main_thread = 13;
197 optional bool is_active = 14;
189 198
190 optional Vector2dF inner_viewport_container_bounds_delta = 8; 199 optional Vector2dF inner_viewport_container_bounds_delta = 8;
191 optional Vector2dF outer_viewport_container_bounds_delta = 9; 200 optional Vector2dF outer_viewport_container_bounds_delta = 9;
192 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; 201 optional Vector2dF inner_viewport_scroll_bounds_delta = 10;
193 } 202 }
OLDNEW
« no previous file with comments | « cc/proto/BUILD.gn ('k') | cc/proto/synced_property.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698