From 4b67f3bb68e502f6d29dfe9b1e48f9070ae4714e Mon Sep 17 00:00:00 2001 From: sunxd Date: Thu, 21 Jan 2016 07:56:43 -0800 Subject: 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} --- cc/proto/property_tree.proto | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'cc/proto') 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; } -- cgit v1.1