summaryrefslogtreecommitdiffstats
path: root/cc/proto
diff options
context:
space:
mode:
authorsunxd <sunxd@chromium.org>2016-01-21 07:56:43 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-21 15:58:29 +0000
commit4b67f3bb68e502f6d29dfe9b1e48f9070ae4714e (patch)
treec452b851190eb5e9b8cfe116cbfbe136c581d22d /cc/proto
parentfaa44a45efc0ad802d841ed4adebff10a87a0cb1 (diff)
downloadchromium_src-4b67f3bb68e502f6d29dfe9b1e48f9070ae4714e.zip
chromium_src-4b67f3bb68e502f6d29dfe9b1e48f9070ae4714e.tar.gz
chromium_src-4b67f3bb68e502f6d29dfe9b1e48f9070ae4714e.tar.bz2
Add Scroll Tree data structure
BUG=568830 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1611713002 Cr-Commit-Position: refs/heads/master@{#370705}
Diffstat (limited to 'cc/proto')
-rw-r--r--cc/proto/property_tree.proto17
1 files changed, 14 insertions, 3 deletions
diff --git a/cc/proto/property_tree.proto b/cc/proto/property_tree.proto
index 7f1b996..50cfb45 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;
}