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

Unified Diff: cc/proto/property_tree.proto

Issue 1611713002: Add Scroll Tree data structure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add scroll tree serialization unit tests Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/trees/property_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/property_tree.proto
diff --git a/cc/proto/property_tree.proto b/cc/proto/property_tree.proto
index 7f1b996875c38e4fd18791be14c43d549b64f01a..50cfb45c95ac576969c5ebbe70fc439b0cc01eeb 100644
--- a/cc/proto/property_tree.proto
+++ b/cc/proto/property_tree.proto
@@ -86,6 +86,14 @@ message EffectNodeData {
optional int64 clip_id = 6;
}
+message ScrollNodeData {
+ optional bool scrollable = 1;
+ optional bool should_scroll_on_main_thread = 2;
+ optional int32 scroll_blocks_on = 3;
+ optional bool contains_non_fast_scrollable_region = 4;
+ optional int64 transform_id = 5;
+}
+
// This defines the proto used for all types of struct TreeNode.
message TreeNode {
// The following fields are the base TreeNode properties. This list
@@ -100,6 +108,7 @@ message TreeNode {
optional TranformNodeData transform_node_data = 1000;
optional ClipNodeData clip_node_data = 1001;
optional EffectNodeData effect_node_data = 1002;
+ optional ScrollNodeData scroll_node_data = 1003;
}
// This defines the proto used for all property trees. PropertyType denotes the
@@ -109,6 +118,7 @@ message PropertyTree {
Transform = 1;
Clip = 2;
Effect = 3;
+ Scroll = 4;
}
// The following fields are the base PropertyTree properties. This list
@@ -142,8 +152,9 @@ message PropertyTrees {
optional PropertyTree transform_tree = 1;
optional PropertyTree effect_tree = 2;
optional PropertyTree clip_tree = 3;
+ optional PropertyTree scroll_tree = 4;
- optional bool needs_rebuild = 4;
- optional bool non_root_surfaces_enabled = 5;
- optional int64 sequence_number = 6;
+ optional bool needs_rebuild = 5;
+ optional bool non_root_surfaces_enabled = 6;
+ optional int64 sequence_number = 7;
}
« no previous file with comments | « no previous file | cc/trees/property_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698