| 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 "size.proto"; |
| 10 import "synced_property.proto"; | 10 import "synced_property.proto"; |
| 11 import "transform.proto"; | 11 import "transform.proto"; |
| 12 import "vector2df.proto"; | 12 import "vector2df.proto"; |
| 13 | 13 |
| 14 option optimize_for = LITE_RUNTIME; | 14 option optimize_for = LITE_RUNTIME; |
| 15 | 15 |
| 16 package cc.proto; | 16 package cc.proto; |
| 17 | 17 |
| 18 // 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 |
| 19 // cc/trees/property_tree.h | 19 // cc/trees/property_tree.h |
| 20 | 20 |
| 21 // Proto for struct TransformNodeData. | 21 // Proto for struct TransformNodeData. |
| 22 // NEXT ID: 43 | 22 // NEXT ID: 43 |
| 23 message TranformNodeData { | 23 message TranformNodeData { |
| 24 optional Transform pre_local = 1; | 24 optional Transform pre_local = 1; |
| 25 optional Transform local = 2; | 25 optional Transform local = 2; |
| 26 optional Transform post_local = 3; | 26 optional Transform post_local = 3; |
| 27 optional Transform to_parent = 4; | 27 optional Transform to_parent = 4; |
| 28 optional Transform to_target = 5; | |
| 29 optional Transform from_target = 6; | |
| 30 optional Transform to_screen = 7; | |
| 31 optional Transform from_screen = 8; | |
| 32 | 28 |
| 33 optional int64 target_id = 9; | |
| 34 optional int64 content_target_id = 10; | |
| 35 optional int64 source_node_id = 11; | 29 optional int64 source_node_id = 11; |
| 36 optional bool needs_local_transform_update = 12; | 30 optional bool needs_local_transform_update = 12; |
| 37 optional bool node_and_ancestors_are_animated_or_invertible = 41; | 31 optional bool node_and_ancestors_are_animated_or_invertible = 41; |
| 38 optional bool is_invertible = 13; | 32 optional bool is_invertible = 13; |
| 39 optional bool ancestors_are_invertible = 14; | 33 optional bool ancestors_are_invertible = 14; |
| 40 optional bool has_potential_animation = 15; | 34 optional bool has_potential_animation = 15; |
| 41 optional bool is_currently_animating = 42; | 35 optional bool is_currently_animating = 42; |
| 42 optional bool to_screen_is_potentially_animated = 16; | 36 optional bool to_screen_is_potentially_animated = 16; |
| 43 optional bool has_only_translation_animations = 17; | 37 optional bool has_only_translation_animations = 17; |
| 44 optional bool to_screen_has_scale_animation = 18; | 38 optional bool to_screen_has_scale_animation = 18; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 60 optional float combined_starting_animation_scale = 33; | 54 optional float combined_starting_animation_scale = 33; |
| 61 | 55 |
| 62 optional Vector2dF sublayer_scale = 34; | 56 optional Vector2dF sublayer_scale = 34; |
| 63 optional ScrollOffset scroll_offset = 35; | 57 optional ScrollOffset scroll_offset = 35; |
| 64 optional Vector2dF scroll_snap = 36; | 58 optional Vector2dF scroll_snap = 36; |
| 65 optional Vector2dF source_offset = 37; | 59 optional Vector2dF source_offset = 37; |
| 66 optional Vector2dF source_to_parent = 38; | 60 optional Vector2dF source_to_parent = 38; |
| 67 optional int64 sorting_context_id = 39; | 61 optional int64 sorting_context_id = 39; |
| 68 } | 62 } |
| 69 | 63 |
| 64 // Proto for TransformCachedNodeData |
| 65 message TransformCachedNodeData { |
| 66 optional Transform from_target = 1; |
| 67 optional Transform to_target = 2; |
| 68 optional Transform from_screen = 3; |
| 69 optional Transform to_screen = 4; |
| 70 optional int64 target_id = 5; |
| 71 optional int64 content_target_id = 6; |
| 72 } |
| 73 |
| 70 // Proto for struct ClipNodeData. | 74 // Proto for struct ClipNodeData. |
| 71 // NEXT ID: 12 | 75 // NEXT ID: 12 |
| 72 message ClipNodeData { | 76 message ClipNodeData { |
| 73 optional RectF clip = 1; | 77 optional RectF clip = 1; |
| 74 optional RectF combined_clip_in_target_space = 2; | 78 optional RectF combined_clip_in_target_space = 2; |
| 75 optional RectF clip_in_target_space = 3; | 79 optional RectF clip_in_target_space = 3; |
| 76 | 80 |
| 77 optional int64 transform_id = 4; | 81 optional int64 transform_id = 4; |
| 78 optional int64 target_id = 5; | 82 optional int64 target_id = 5; |
| 79 optional bool applies_local_clip = 6; | 83 optional bool applies_local_clip = 6; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // Proto for data members of class TransformTree. | 182 // Proto for data members of class TransformTree. |
| 179 message TransformTreeData { | 183 message TransformTreeData { |
| 180 optional bool source_to_parent_updates_allowed = 1; | 184 optional bool source_to_parent_updates_allowed = 1; |
| 181 optional float page_scale_factor = 2; | 185 optional float page_scale_factor = 2; |
| 182 optional float device_scale_factor = 3; | 186 optional float device_scale_factor = 3; |
| 183 optional float device_transform_scale_factor = 4; | 187 optional float device_transform_scale_factor = 4; |
| 184 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7 | 188 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7 |
| 185 [packed = true]; | 189 [packed = true]; |
| 186 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8 | 190 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8 |
| 187 [packed = true]; | 191 [packed = true]; |
| 192 repeated TransformCachedNodeData cached_data = 9; |
| 188 } | 193 } |
| 189 | 194 |
| 190 // Proto for class PropertyTrees. | 195 // Proto for class PropertyTrees. |
| 191 // NEXT ID: 16 | 196 // NEXT ID: 16 |
| 192 message PropertyTrees { | 197 message PropertyTrees { |
| 193 optional PropertyTree transform_tree = 1; | 198 optional PropertyTree transform_tree = 1; |
| 194 optional PropertyTree effect_tree = 2; | 199 optional PropertyTree effect_tree = 2; |
| 195 optional PropertyTree clip_tree = 3; | 200 optional PropertyTree clip_tree = 3; |
| 196 optional PropertyTree scroll_tree = 7; | 201 optional PropertyTree scroll_tree = 7; |
| 197 | 202 |
| 198 optional bool needs_rebuild = 4; | 203 optional bool needs_rebuild = 4; |
| 199 optional bool non_root_surfaces_enabled = 5; | 204 optional bool non_root_surfaces_enabled = 5; |
| 200 optional bool changed = 11; | 205 optional bool changed = 11; |
| 201 optional bool full_tree_damaged = 12; | 206 optional bool full_tree_damaged = 12; |
| 202 optional int64 sequence_number = 6; | 207 optional int64 sequence_number = 6; |
| 203 optional bool is_main_thread = 13; | 208 optional bool is_main_thread = 13; |
| 204 optional bool is_active = 14; | 209 optional bool is_active = 14; |
| 205 | 210 |
| 206 optional Vector2dF inner_viewport_container_bounds_delta = 8; | 211 optional Vector2dF inner_viewport_container_bounds_delta = 8; |
| 207 optional Vector2dF outer_viewport_container_bounds_delta = 9; | 212 optional Vector2dF outer_viewport_container_bounds_delta = 9; |
| 208 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; | 213 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; |
| 209 repeated int64 always_use_active_tree_opacity_effect_ids = 15 [packed = true]; | 214 repeated int64 always_use_active_tree_opacity_effect_ids = 15 [packed = true]; |
| 210 } | 215 } |
| OLD | NEW |