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 { | |
|
David Trainor- moved to gerrit
2015/11/12 22:46:10
Put comments above each of these types pointing to
Khushal
2015/11/13 10:33:12
Done.
| |
| 17 optional cc.proto.Transform pre_local = 1; | |
|
David Trainor- moved to gerrit
2015/11/12 22:46:10
I know I added this, but maybe remove cc.proto if
Khushal
2015/11/13 10:33:12
We decided to remove them since they are not neede
| |
| 18 optional cc.proto.Transform local = 2; | |
| 19 optional cc.proto.Transform post_local = 3; | |
| 20 optional cc.proto.Transform to_parent = 4; | |
| 21 optional cc.proto.Transform to_target = 5; | |
| 22 optional cc.proto.Transform from_target = 6; | |
| 23 optional cc.proto.Transform to_screen = 7; | |
| 24 optional cc.proto.Transform from_screen = 8; | |
| 25 | |
| 26 optional int64 target_id = 9; | |
| 27 optional int64 content_target_id = 10; | |
| 28 optional int64 source_node_id = 11; | |
| 29 optional bool needs_local_transform_update = 12; | |
| 30 optional bool is_invertible = 13; | |
| 31 optional bool ancestors_are_invertible = 14; | |
| 32 optional bool is_animated = 15; | |
| 33 optional bool to_screen_is_animated = 16; | |
| 34 optional bool has_only_translation_animations = 17; | |
| 35 optional bool to_screen_has_scale_animation = 18; | |
| 36 optional bool flattens_inherited_transform = 19; | |
| 37 optional bool node_and_ancestors_are_flat = 20; | |
| 38 optional bool node_and_ancestors_have_only_integer_translation = 21; | |
| 39 optional bool scrolls = 22; | |
| 40 optional bool needs_sublayer_scale = 23; | |
| 41 optional bool affected_by_inner_viewport_bounds_delta_x = 24; | |
| 42 optional bool affected_by_inner_viewport_bounds_delta_y = 25; | |
| 43 optional bool affected_by_outer_viewport_bounds_delta_x = 26; | |
| 44 optional bool affected_by_outer_viewport_bounds_delta_y = 27; | |
| 45 optional bool in_subtree_of_page_scale_layer = 28; | |
| 46 optional float post_local_scale_factor = 29; | |
| 47 optional float local_maximum_animation_target_scale = 30; | |
| 48 optional float local_starting_animation_scale = 31; | |
| 49 optional float combined_maximum_animation_target_scale = 32; | |
| 50 optional float combined_starting_animation_scale = 33; | |
| 51 | |
| 52 optional cc.proto.Vector2dF sublayer_scale = 34; | |
| 53 optional cc.proto.ScrollOffset scroll_offset = 35; | |
| 54 optional cc.proto.Vector2dF scroll_snap = 36; | |
| 55 optional cc.proto.Vector2dF source_offset = 37; | |
| 56 optional cc.proto.Vector2dF source_to_parent = 38; | |
| 57 } | |
| 58 | |
| 59 message ClipNodeData { | |
| 60 optional cc.proto.RectF clip = 1; | |
| 61 optional cc.proto.RectF combined_clip_in_target_space = 2; | |
| 62 optional cc.proto.RectF clip_in_target_space = 3; | |
| 63 | |
| 64 optional int64 transform_id = 4; | |
| 65 optional int64 target_id = 5; | |
| 66 optional bool applies_local_clip = 6; | |
| 67 optional bool layer_clipping_uses_only_local_clip = 7; | |
| 68 optional bool target_is_clipped = 8; | |
| 69 optional bool layers_are_clipped = 9; | |
| 70 optional bool layers_are_clipped_when_surfaces_disabled = 10; | |
| 71 optional bool resets_clip = 11; | |
| 72 } | |
| 73 | |
| 74 message EffectNodeData { | |
| 75 optional float opacity = 1; | |
| 76 optional float screen_space_opacity = 2; | |
| 77 optional bool has_render_surface = 3; | |
| 78 optional int64 transform_id = 4; | |
| 79 optional int64 clip_id = 5; | |
| 80 } | |
| 81 | |
| 82 message TreeNode { | |
| 83 optional int64 id = 1; | |
| 84 optional int64 parent_id = 2; | |
| 85 optional int64 owner_id = 3; | |
| 86 | |
| 87 optional cc.proto.TranformNodeData transform_node_data = 101; | |
| 88 optional cc.proto.ClipNodeData clip_node_data = 102; | |
| 89 optional cc.proto.EffectNodeData effect_node_data = 103; | |
| 90 } | |
| 91 | |
| 92 message PropertyTree { | |
| 93 enum PropertyType { | |
| 94 Transform = 1; | |
| 95 Clip = 2; | |
| 96 Effect = 3; | |
| 97 } | |
| 98 | |
| 99 optional PropertyType property_type = 1; | |
| 100 repeated cc.proto.TreeNode nodes = 2; | |
| 101 optional bool needs_update = 3; | |
| 102 | |
| 103 optional TransformTreeData transform_tree_data = 100; | |
|
David Trainor- moved to gerrit
2015/11/12 22:46:10
1000 for these kind of subclass types? at least t
Khushal
2015/11/13 10:33:12
Done.
| |
| 104 } | |
| 105 | |
| 106 message TransformTreeData { | |
| 107 optional bool source_to_parent_updates_allowed = 100; | |
|
David Trainor- moved to gerrit
2015/11/12 22:46:10
start at 1
Khushal
2015/11/13 10:33:12
Done.
| |
| 108 optional float page_scale_factor = 101; | |
| 109 optional float device_scale_factor = 102; | |
| 110 optional float device_transform_scale_factor = 103; | |
| 111 optional cc.proto.Vector2dF inner_viewport_bounds_delta = 104; | |
| 112 optional cc.proto.Vector2dF outer_viewport_bounds_delta = 105; | |
| 113 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 106 | |
| 114 [packed = true]; | |
| 115 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 107 | |
| 116 [packed = true]; | |
| 117 } | |
| 118 | |
| 119 message PropertyTrees { | |
| 120 optional cc.proto.PropertyTree transform_tree = 1; | |
| 121 optional cc.proto.PropertyTree effect_tree = 2; | |
| 122 optional cc.proto.PropertyTree clip_tree = 3; | |
| 123 | |
| 124 optional bool needs_rebuild = 100; | |
|
David Trainor- moved to gerrit
2015/11/12 22:46:10
just make this 4. it's just a continuation of bas
Khushal
2015/11/13 10:33:12
Done.
| |
| 125 optional bool non_root_surfaces_enabled = 101; | |
| 126 optional int64 sequence_number = 102; | |
| 127 } | |
| OLD | NEW |