| 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 "transform.proto"; | 10 import "transform.proto"; |
| 11 import "vector2df.proto"; | 11 import "vector2df.proto"; |
| 12 | 12 |
| 13 option optimize_for = LITE_RUNTIME; | 13 option optimize_for = LITE_RUNTIME; |
| 14 | 14 |
| 15 package cc.proto; | 15 package cc.proto; |
| 16 | 16 |
| 17 // The messages declared in this file correspond to the classes declared in | 17 // The messages declared in this file correspond to the classes declared in |
| 18 // cc/trees/property_tree.h | 18 // cc/trees/property_tree.h |
| 19 | 19 |
| 20 // Proto for struct TransformNodeData. | 20 // Proto for struct TransformNodeData. |
| 21 // NEXT ID: 41 |
| 21 message TranformNodeData { | 22 message TranformNodeData { |
| 22 optional Transform pre_local = 1; | 23 optional Transform pre_local = 1; |
| 23 optional Transform local = 2; | 24 optional Transform local = 2; |
| 24 optional Transform post_local = 3; | 25 optional Transform post_local = 3; |
| 25 optional Transform to_parent = 4; | 26 optional Transform to_parent = 4; |
| 26 optional Transform to_target = 5; | 27 optional Transform to_target = 5; |
| 27 optional Transform from_target = 6; | 28 optional Transform from_target = 6; |
| 28 optional Transform to_screen = 7; | 29 optional Transform to_screen = 7; |
| 29 optional Transform from_screen = 8; | 30 optional Transform from_screen = 8; |
| 30 | 31 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 41 optional bool flattens_inherited_transform = 19; | 42 optional bool flattens_inherited_transform = 19; |
| 42 optional bool node_and_ancestors_are_flat = 20; | 43 optional bool node_and_ancestors_are_flat = 20; |
| 43 optional bool node_and_ancestors_have_only_integer_translation = 21; | 44 optional bool node_and_ancestors_have_only_integer_translation = 21; |
| 44 optional bool scrolls = 22; | 45 optional bool scrolls = 22; |
| 45 optional bool needs_sublayer_scale = 23; | 46 optional bool needs_sublayer_scale = 23; |
| 46 optional bool affected_by_inner_viewport_bounds_delta_x = 24; | 47 optional bool affected_by_inner_viewport_bounds_delta_x = 24; |
| 47 optional bool affected_by_inner_viewport_bounds_delta_y = 25; | 48 optional bool affected_by_inner_viewport_bounds_delta_y = 25; |
| 48 optional bool affected_by_outer_viewport_bounds_delta_x = 26; | 49 optional bool affected_by_outer_viewport_bounds_delta_x = 26; |
| 49 optional bool affected_by_outer_viewport_bounds_delta_y = 27; | 50 optional bool affected_by_outer_viewport_bounds_delta_y = 27; |
| 50 optional bool in_subtree_of_page_scale_layer = 28; | 51 optional bool in_subtree_of_page_scale_layer = 28; |
| 52 optional bool transform_changed = 40; |
| 51 optional float post_local_scale_factor = 29; | 53 optional float post_local_scale_factor = 29; |
| 52 optional float local_maximum_animation_target_scale = 30; | 54 optional float local_maximum_animation_target_scale = 30; |
| 53 optional float local_starting_animation_scale = 31; | 55 optional float local_starting_animation_scale = 31; |
| 54 optional float combined_maximum_animation_target_scale = 32; | 56 optional float combined_maximum_animation_target_scale = 32; |
| 55 optional float combined_starting_animation_scale = 33; | 57 optional float combined_starting_animation_scale = 33; |
| 56 | 58 |
| 57 optional Vector2dF sublayer_scale = 34; | 59 optional Vector2dF sublayer_scale = 34; |
| 58 optional ScrollOffset scroll_offset = 35; | 60 optional ScrollOffset scroll_offset = 35; |
| 59 optional Vector2dF scroll_snap = 36; | 61 optional Vector2dF scroll_snap = 36; |
| 60 optional Vector2dF source_offset = 37; | 62 optional Vector2dF source_offset = 37; |
| 61 optional Vector2dF source_to_parent = 38; | 63 optional Vector2dF source_to_parent = 38; |
| 62 optional int64 sorting_context_id = 39; | 64 optional int64 sorting_context_id = 39; |
| 63 } | 65 } |
| 64 | 66 |
| 65 // Proto for struct ClipNodeData. | 67 // Proto for struct ClipNodeData. |
| 68 // NEXT ID: 12 |
| 66 message ClipNodeData { | 69 message ClipNodeData { |
| 67 optional RectF clip = 1; | 70 optional RectF clip = 1; |
| 68 optional RectF combined_clip_in_target_space = 2; | 71 optional RectF combined_clip_in_target_space = 2; |
| 69 optional RectF clip_in_target_space = 3; | 72 optional RectF clip_in_target_space = 3; |
| 70 | 73 |
| 71 optional int64 transform_id = 4; | 74 optional int64 transform_id = 4; |
| 72 optional int64 target_id = 5; | 75 optional int64 target_id = 5; |
| 73 optional bool applies_local_clip = 6; | 76 optional bool applies_local_clip = 6; |
| 74 optional bool layer_clipping_uses_only_local_clip = 7; | 77 optional bool layer_clipping_uses_only_local_clip = 7; |
| 75 optional bool target_is_clipped = 8; | 78 optional bool target_is_clipped = 8; |
| 76 optional bool layers_are_clipped = 9; | 79 optional bool layers_are_clipped = 9; |
| 77 optional bool layers_are_clipped_when_surfaces_disabled = 10; | 80 optional bool layers_are_clipped_when_surfaces_disabled = 10; |
| 78 optional bool resets_clip = 11; | 81 optional bool resets_clip = 11; |
| 79 } | 82 } |
| 80 | 83 |
| 81 // Proto for struct EffectNodeData. | 84 // Proto for struct EffectNodeData. |
| 85 // NEXT ID: 11 |
| 82 message EffectNodeData { | 86 message EffectNodeData { |
| 83 optional float opacity = 1; | 87 optional float opacity = 1; |
| 84 optional float screen_space_opacity = 2; | 88 optional float screen_space_opacity = 2; |
| 85 optional bool has_render_surface = 3; | 89 optional bool has_render_surface = 3; |
| 86 optional bool has_copy_request = 4; | 90 optional bool has_copy_request = 4; |
| 87 optional bool has_background_filters = 5; | 91 optional bool has_background_filters = 5; |
| 88 optional bool is_drawn = 6; | 92 optional bool is_drawn = 6; |
| 89 optional bool has_animated_opacity = 7; | 93 optional bool has_animated_opacity = 7; |
| 90 optional int64 num_copy_requests_in_subtree = 8; | 94 optional int64 num_copy_requests_in_subtree = 8; |
| 91 optional int64 transform_id = 9; | 95 optional int64 transform_id = 9; |
| 92 optional int64 clip_id = 10; | 96 optional int64 clip_id = 10; |
| 93 } | 97 } |
| 94 | 98 |
| 95 // Proto for struct ScrollNodeData | 99 // Proto for struct ScrollNodeData |
| 100 // NEXT ID: 9 |
| 96 message ScrollNodeData { | 101 message ScrollNodeData { |
| 97 optional bool scrollable = 1; | 102 optional bool scrollable = 1; |
| 98 optional int32 main_thread_scrolling_reasons = 2; | 103 optional int32 main_thread_scrolling_reasons = 2; |
| 99 optional bool contains_non_fast_scrollable_region = 3; | 104 optional bool contains_non_fast_scrollable_region = 3; |
| 100 optional Size scroll_clip_layer_bounds = 4; | 105 optional Size scroll_clip_layer_bounds = 4; |
| 101 optional Size bounds = 5; | 106 optional Size bounds = 5; |
| 102 optional bool max_scroll_offset_affected_by_page_scale = 6; | 107 optional bool max_scroll_offset_affected_by_page_scale = 6; |
| 103 optional bool is_inner_viewport_scroll_layer = 7; | 108 optional bool is_inner_viewport_scroll_layer = 7; |
| 104 optional bool is_outer_viewport_scroll_layer = 8; | 109 optional bool is_outer_viewport_scroll_layer = 8; |
| 105 } | 110 } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 optional PropertyTree scroll_tree = 7; | 169 optional PropertyTree scroll_tree = 7; |
| 165 | 170 |
| 166 optional bool needs_rebuild = 4; | 171 optional bool needs_rebuild = 4; |
| 167 optional bool non_root_surfaces_enabled = 5; | 172 optional bool non_root_surfaces_enabled = 5; |
| 168 optional int64 sequence_number = 6; | 173 optional int64 sequence_number = 6; |
| 169 | 174 |
| 170 optional Vector2dF inner_viewport_container_bounds_delta = 8; | 175 optional Vector2dF inner_viewport_container_bounds_delta = 8; |
| 171 optional Vector2dF outer_viewport_container_bounds_delta = 9; | 176 optional Vector2dF outer_viewport_container_bounds_delta = 9; |
| 172 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; | 177 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; |
| 173 } | 178 } |
| OLD | NEW |