Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: cc/proto/layer.proto

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "display_item.proto"; 7 import "display_item.proto";
8 import "layer_position_constraint.proto"; 8 import "layer_position_constraint.proto";
9 import "layer_sticky_position_constraint.proto";
9 import "point3f.proto"; 10 import "point3f.proto";
10 import "pointf.proto"; 11 import "pointf.proto";
11 import "recording_source.proto"; 12 import "recording_source.proto";
12 import "region.proto"; 13 import "region.proto";
13 import "rect.proto"; 14 import "rect.proto";
14 import "scroll_offset.proto"; 15 import "scroll_offset.proto";
15 import "size.proto"; 16 import "size.proto";
16 import "skxfermode.proto"; 17 import "skxfermode.proto";
17 import "transform.proto"; 18 import "transform.proto";
18 import "vector2df.proto"; 19 import "vector2df.proto";
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // for their specific properties. 62 // for their specific properties.
62 optional BaseLayerProperties base = 5; 63 optional BaseLayerProperties base = 5;
63 64
64 // Only one of these fields may be set per LayerProperties. 65 // Only one of these fields may be set per LayerProperties.
65 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See 66 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See
66 // crbug.com/570371. 67 // crbug.com/570371.
67 optional PictureLayerProperties picture = 6; 68 optional PictureLayerProperties picture = 6;
68 optional SolidColorScrollbarLayerProperties solid_scrollbar = 7; 69 optional SolidColorScrollbarLayerProperties solid_scrollbar = 7;
69 } 70 }
70 71
71 // NEXT ID: 56 72 // NEXT ID: 59
72 message BaseLayerProperties { 73 message BaseLayerProperties {
74 // The following fields mirror the data stored in Layer::Inputs ----------
75 optional Rect update_rect = 46;
76 optional Size bounds = 3;
77 optional bool masks_to_bounds = 14;
78 optional float opacity = 22;
79 optional SkXfermode.Mode blend_mode = 23;
80 optional bool is_root_for_isolated_group = 24;
81 optional bool contents_opaque = 21;
82 optional PointF position = 25;
83 optional Transform transform = 33;
73 optional Point3F transform_origin = 1; 84 optional Point3F transform_origin = 1;
85 optional bool is_drawable = 56;
86 optional bool double_sided = 8;
87 optional bool should_flatten_transform = 28;
88 optional int32 sorting_context_id = 35;
89 optional bool use_parent_backface_visibility = 32;
74 optional uint32 background_color = 2; 90 optional uint32 background_color = 2;
91 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321.
92 // repeated FilterOperation filters = 12;
93 // repeated FilterOperation background_filters = 13;
94 // optional PointF filters_origin = 57
95 optional ScrollOffset scroll_offset = 44;
96 optional int32 scroll_clip_layer_id = 37;
97 optional bool user_scrollable_horizontal = 38;
98 optional bool user_scrollable_vertical = 39;
99 optional uint32 main_thread_scrolling_reasons = 15;
100
101 optional Region non_fast_scrollable_region = 18;
102 // TODO(khushalsagar): Do we actually need these? Touch events are never sent
103 // back to the engine.
104 optional Region touch_event_handler_region = 19;
105
106 optional bool is_container_for_fixed_position_layers = 26;
107 optional LayerPositionConstraint position_constraint = 27;
108 optional LayerStickyPositionConstraint sticky_position_constraint = 58;
109
110 // ElementId and mutable properties ignored because these are used by
111 // animations of Compositor-worker.
112
113 optional int32 scroll_parent_id = 40;
114 optional int32 clip_parent_id = 42;
115 optional bool has_will_change_transform_hint = 48;
116 optional bool hide_layer_and_subtree = 10;
117
118 // -----------------------------------------------------------------------
119
120 // TODO(khushalsagar): Remove these when crbug.com/648442
75 optional uint32 safe_opaque_background_color = 53; 121 optional uint32 safe_opaque_background_color = 53;
76 optional Size bounds = 3;
77 optional int64 transform_free_index = 4; 122 optional int64 transform_free_index = 4;
78 optional int64 effect_tree_index = 5; 123 optional int64 effect_tree_index = 5;
79 optional int64 clip_tree_index = 6; 124 optional int64 clip_tree_index = 6;
80 optional int64 scroll_tree_index = 50; 125 optional int64 scroll_tree_index = 50;
81 optional Vector2dF offset_to_transform_parent = 7; 126 optional Vector2dF offset_to_transform_parent = 7;
82 optional bool double_sided = 8;
83 optional bool draws_content = 9; 127 optional bool draws_content = 9;
84 optional bool may_contain_video = 55; 128 optional bool may_contain_video = 55;
85 optional bool hide_layer_and_subtree = 10;
86 optional bool subtree_property_changed = 47; 129 optional bool subtree_property_changed = 47;
87 optional bool layer_property_changed = 54; 130 optional bool layer_property_changed = 54;
88 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321.
89 // repeated FilterOperation filters = 12;
90 // repeated FilterOperation background_filters = 13;
91 optional bool masks_to_bounds = 14;
92 optional uint32 main_thread_scrolling_reasons = 15;
93 optional bool have_scroll_event_handlers = 17; 131 optional bool have_scroll_event_handlers = 17;
94 optional Region non_fast_scrollable_region = 18;
95 optional Region touch_event_handler_region = 19;
96 optional bool contents_opaque = 21;
97 optional float opacity = 22;
98 optional SkXfermode.Mode blend_mode = 23;
99 optional bool is_root_for_isolated_group = 24;
100 optional PointF position = 25;
101 optional bool is_container_for_fixed_position_layers = 26;
102 optional LayerPositionConstraint position_constraint = 27;
103 optional bool should_flatten_transform = 28;
104 optional bool should_flatten_transform_from_property_tree = 29; 132 optional bool should_flatten_transform_from_property_tree = 29;
105 optional int32 num_layer_or_descendants_with_copy_request = 30; 133 optional int32 num_layer_or_descendants_with_copy_request = 30;
106 optional SkXfermode.Mode draw_blend_mode = 31; 134 optional SkXfermode.Mode draw_blend_mode = 31;
107 optional bool use_parent_backface_visibility = 32;
108 optional bool use_local_transform_for_backface_visibility = 51; 135 optional bool use_local_transform_for_backface_visibility = 51;
109 optional bool should_check_backface_visibility = 52; 136 optional bool should_check_backface_visibility = 52;
110 optional Transform transform = 33;
111 optional bool transform_is_invertible = 34; 137 optional bool transform_is_invertible = 34;
112 optional int32 sorting_context_id = 35;
113 optional int32 num_descendants_that_draw_content = 36; 138 optional int32 num_descendants_that_draw_content = 36;
114 optional bool has_will_change_transform_hint = 48;
115
116 optional int32 scroll_clip_layer_id = 37;
117 optional bool user_scrollable_horizontal = 38;
118 optional bool user_scrollable_vertical = 39;
119
120 optional int32 scroll_parent_id = 40;
121 repeated int32 scroll_children_ids = 41; 139 repeated int32 scroll_children_ids = 41;
122
123 optional int32 clip_parent_id = 42;
124 repeated int32 clip_children_ids = 43; 140 repeated int32 clip_children_ids = 43;
125 141
126 optional ScrollOffset scroll_offset = 44;
127
128 optional Rect update_rect = 46;
129
130 // TODO(nyquist): Figure out what to do with LayerAnimationController. 142 // TODO(nyquist): Figure out what to do with LayerAnimationController.
131 // optional LayerAnimationController layer_animation_controller = ???; 143 // optional LayerAnimationController layer_animation_controller = ???;
132 } 144 }
133 145
134 message PictureLayerProperties { 146 message PictureLayerProperties {
135 optional RecordingSource recording_source = 1; 147 optional RecordingSource recording_source = 1;
136 optional Region invalidation = 2; 148 optional Region invalidation = 2;
137 optional Rect last_updated_visible_layer_rect = 3; 149 optional Rect last_updated_visible_layer_rect = 3;
138 optional bool is_mask = 4; 150 optional bool is_mask = 4;
139 optional bool nearest_neighbor = 5; 151 optional bool nearest_neighbor = 5;
140 152
141 optional int64 update_source_frame_number = 6; 153 optional int64 update_source_frame_number = 6;
142 154
143 optional Rect recorded_viewport = 7; 155 optional Rect recorded_viewport = 7;
144 optional DisplayItemList display_list = 8; 156 optional DisplayItemList display_list = 8;
145 } 157 }
146 158
147 message SolidColorScrollbarLayerProperties { 159 message SolidColorScrollbarLayerProperties {
148 enum ScrollbarOrientation { 160 enum ScrollbarOrientation {
149 HORIZONTAL = 0; 161 HORIZONTAL = 0;
150 VERTICAL = 1; 162 VERTICAL = 1;
151 }; 163 };
152 164
153 optional int32 scroll_layer_id = 1; 165 optional int32 scroll_layer_id = 1;
154 optional int32 thumb_thickness = 2; 166 optional int32 thumb_thickness = 2;
155 optional int32 track_start = 3; 167 optional int32 track_start = 3;
156 optional bool is_left_side_vertical_scrollbar = 4; 168 optional bool is_left_side_vertical_scrollbar = 4;
157 optional ScrollbarOrientation orientation = 5; 169 optional ScrollbarOrientation orientation = 5;
158 } 170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698