Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 syntax = "proto2"; | |
| 6 | |
| 7 import "rectf.proto"; | |
| 8 import "scroll_offset.proto"; | |
| 9 import "transform.proto"; | |
| 10 import "vector2df.proto"; | |
| 11 | |
| 12 option optimize_for = LITE_RUNTIME; | |
| 13 | |
| 14 package cc.proto; | |
| 15 | |
| 16 message TranformNodeData { | |
| 17 optional cc.proto.Transform pre_local = 1; | |
| 18 optional cc.proto.Transform local = 2; | |
| 19 optional cc.proto.Transform post_local = 3; | |
| 20 | |
| 21 optional cc.proto.Transform to_parent = 4; | |
| 22 | |
| 23 optional cc.proto.Transform to_target = 5; | |
| 24 optional cc.proto.Transform from_target = 6; | |
| 25 | |
| 26 optional cc.proto.Transform to_screen = 7; | |
| 27 optional cc.proto.Transform from_screen = 8; | |
| 28 | |
| 29 optional int64 target_id = 9; | |
| 30 optional int64 content_target_id = 10; | |
| 31 | |
| 32 optional int64 source_node_id = 11; | |
| 33 | |
| 34 optional bool needs_local_transform_update = 12; | |
| 35 | |
| 36 optional bool is_invertible = 13; | |
| 37 optional bool ancestors_are_invertible = 14; | |
| 38 | |
| 39 optional bool is_animated = 15; | |
| 40 optional bool to_screen_is_animated = 16; | |
| 41 optional bool has_only_translation_animations = 17; | |
| 42 optional bool to_screen_has_scale_animation = 18; | |
| 43 | |
| 44 optional bool flattens_inherited_transform = 19; | |
| 45 | |
| 46 optional bool node_and_ancestors_are_flat = 20; | |
| 47 | |
| 48 optional bool node_and_ancestors_have_only_integer_translation = 21; | |
| 49 | |
| 50 optional bool scrolls = 22; | |
| 51 | |
| 52 optional bool needs_sublayer_scale = 23; | |
| 53 | |
| 54 optional bool affected_by_inner_viewport_bounds_delta_x = 24; | |
| 55 optional bool affected_by_inner_viewport_bounds_delta_y = 25; | |
| 56 optional bool affected_by_outer_viewport_bounds_delta_x = 26; | |
| 57 optional bool affected_by_outer_viewport_bounds_delta_y = 27; | |
| 58 | |
| 59 optional bool in_subtree_of_page_scale_layer = 28; | |
| 60 | |
| 61 optional float post_local_scale_factor = 29; | |
| 62 | |
| 63 optional float local_maximum_animation_target_scale = 30; | |
| 64 | |
| 65 optional float local_starting_animation_scale = 31; | |
| 66 | |
| 67 optional float combined_maximum_animation_target_scale = 32; | |
| 68 | |
| 69 optional float combined_starting_animation_scale = 33; | |
| 70 | |
| 71 optional cc.proto.Vector2dF sublayer_scale = 34; | |
| 72 | |
| 73 optional cc.proto.ScrollOffset scroll_offset = 35; | |
| 74 | |
| 75 optional cc.proto.Vector2dF scroll_snap = 36; | |
| 76 | |
| 77 optional cc.proto.Vector2dF source_offset = 37; | |
| 78 optional cc.proto.Vector2dF source_to_parent = 38; | |
| 79 } | |
| 80 | |
| 81 message ClipNodeData { | |
| 82 optional cc.proto.RectF clip = 1; | |
| 83 | |
| 84 optional cc.proto.RectF combined_clip_in_target_space = 2; | |
| 85 optional cc.proto.RectF clip_in_target_space = 3; | |
| 86 | |
| 87 optional int64 transform_id = 4; | |
| 88 | |
| 89 optional int64 target_id = 5; | |
| 90 | |
| 91 optional bool applies_local_clip = 6; | |
| 92 | |
| 93 optional bool layer_clipping_uses_only_local_clip = 7; | |
| 94 | |
| 95 optional bool target_is_clipped = 8; | |
| 96 | |
| 97 optional bool layers_are_clipped = 9; | |
| 98 optional bool layers_are_clipped_when_surfaces_disabled = 10; | |
| 99 | |
| 100 optional bool resets_clip = 11; | |
| 101 } | |
| 102 | |
| 103 message EffectNodeData { | |
| 104 optional float opacity = 1; | |
| 105 optional float screen_space_opacity = 2; | |
| 106 | |
| 107 optional bool has_render_surface = 3; | |
| 108 optional int64 transform_id = 4; | |
| 109 optional int64 clip_id = 5; | |
| 110 } | |
| 111 | |
| 112 message TreeNode { | |
| 113 enum PropertyType { | |
| 114 Transform = 1; | |
| 115 Clip = 2; | |
| 116 Effect = 3; | |
| 117 } | |
| 118 | |
| 119 optional int64 id = 1; | |
| 120 optional int64 parent_id = 2; | |
| 121 optional int64 owner_id = 3; | |
| 122 | |
| 123 optional PropertyType property_type = 100; | |
| 124 optional cc.proto.TranformNodeData transform_node_data = 101; | |
| 125 optional cc.proto.ClipNodeData clip_node_data = 102; | |
| 126 optional cc.proto.EffectNodeData effect_node_data = 103; | |
| 127 } | |
| 128 | |
| 129 message PropertyTree { | |
|
David Trainor- moved to gerrit
2015/11/11 16:43:16
Would it make more sense for this to look somethin
Khushal
2015/11/11 19:14:13
I was trying to structure the property tree protos
Khushal
2015/11/12 00:33:10
I re-structured the proto to have the type in the
| |
| 130 repeated cc.proto.TreeNode nodes = 1; | |
| 131 optional bool needs_update = 2; | |
| 132 } | |
| 133 | |
| 134 message TransformTree { | |
| 135 optional cc.proto.PropertyTree property_tree = 1; | |
| 136 | |
| 137 optional bool source_to_parent_updates_allowed = 100; | |
| 138 optional float page_scale_factor = 101; | |
| 139 optional float device_scale_factor = 102; | |
| 140 optional float device_transform_scale_factor = 103; | |
| 141 optional cc.proto.Vector2dF inner_viewport_bounds_delta = 104; | |
| 142 optional cc.proto.Vector2dF outer_viewport_bounds_delta = 105; | |
| 143 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 106 | |
| 144 [packed = true]; | |
| 145 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 107 | |
| 146 [packed = true]; | |
| 147 } | |
| 148 | |
| 149 message ClipTree { | |
| 150 optional cc.proto.PropertyTree property_tree = 1; | |
| 151 } | |
| 152 | |
| 153 message EffectTree { | |
| 154 optional cc.proto.PropertyTree property_tree = 1; | |
| 155 } | |
| 156 | |
| 157 message PropertyTrees { | |
| 158 optional cc.proto.TransformTree transform_tree = 1; | |
| 159 optional cc.proto.EffectTree effect_tree = 2; | |
| 160 optional cc.proto.ClipTree clip_tree = 3; | |
| 161 | |
| 162 optional bool needs_rebuild = 100; | |
| 163 optional bool non_root_surfaces_enabled = 101; | |
| 164 optional int64 sequence_number = 102; | |
| 165 } | |
| OLD | NEW |