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 "layer_position_constraint.proto"; | 7 import "layer_position_constraint.proto"; |
8 import "point3f.proto"; | 8 import "point3f.proto"; |
9 import "pointf.proto"; | 9 import "pointf.proto"; |
10 import "recording_source.proto"; | 10 import "recording_source.proto"; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // The Layer base class and each descendant have different proto messages | 58 // The Layer base class and each descendant have different proto messages |
59 // for their specific properties. | 59 // for their specific properties. |
60 optional BaseLayerProperties base = 5; | 60 optional BaseLayerProperties base = 5; |
61 | 61 |
62 // Only one of these fields may be set per LayerProperties. | 62 // Only one of these fields may be set per LayerProperties. |
63 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See | 63 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See |
64 // crbug.com/570371. | 64 // crbug.com/570371. |
65 optional PictureLayerProperties picture = 6; | 65 optional PictureLayerProperties picture = 6; |
66 } | 66 } |
67 | 67 |
68 // NEXT ID: 54 | 68 // NEXT ID: 55 |
69 message BaseLayerProperties { | 69 message BaseLayerProperties { |
70 optional Point3F transform_origin = 1; | 70 optional Point3F transform_origin = 1; |
71 optional uint32 background_color = 2; | 71 optional uint32 background_color = 2; |
72 optional uint32 safe_opaque_background_color = 53; | 72 optional uint32 safe_opaque_background_color = 53; |
73 optional Size bounds = 3; | 73 optional Size bounds = 3; |
74 optional int64 transform_free_index = 4; | 74 optional int64 transform_free_index = 4; |
75 optional int64 effect_tree_index = 5; | 75 optional int64 effect_tree_index = 5; |
76 optional int64 clip_tree_index = 6; | 76 optional int64 clip_tree_index = 6; |
77 optional int64 scroll_tree_index = 50; | 77 optional int64 scroll_tree_index = 50; |
78 optional Vector2dF offset_to_transform_parent = 7; | 78 optional Vector2dF offset_to_transform_parent = 7; |
79 optional bool double_sided = 8; | 79 optional bool double_sided = 8; |
80 optional bool draws_content = 9; | 80 optional bool draws_content = 9; |
81 optional bool hide_layer_and_subtree = 10; | 81 optional bool hide_layer_and_subtree = 10; |
82 optional bool has_render_surface = 11; | 82 optional bool has_render_surface = 11; |
83 optional bool subtree_property_changed = 47; | 83 optional bool subtree_property_changed = 47; |
| 84 optional bool layer_property_changed = 54; |
84 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. | 85 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. |
85 // repeated FilterOperation filters = 12; | 86 // repeated FilterOperation filters = 12; |
86 // repeated FilterOperation background_filters = 13; | 87 // repeated FilterOperation background_filters = 13; |
87 optional bool masks_to_bounds = 14; | 88 optional bool masks_to_bounds = 14; |
88 optional uint32 main_thread_scrolling_reasons = 15; | 89 optional uint32 main_thread_scrolling_reasons = 15; |
89 optional bool have_scroll_event_handlers = 17; | 90 optional bool have_scroll_event_handlers = 17; |
90 optional Region non_fast_scrollable_region = 18; | 91 optional Region non_fast_scrollable_region = 18; |
91 optional Region touch_event_handler_region = 19; | 92 optional Region touch_event_handler_region = 19; |
92 optional bool contents_opaque = 21; | 93 optional bool contents_opaque = 21; |
93 optional float opacity = 22; | 94 optional float opacity = 22; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 132 |
132 message PictureLayerProperties { | 133 message PictureLayerProperties { |
133 optional RecordingSource recording_source = 1; | 134 optional RecordingSource recording_source = 1; |
134 optional Region invalidation = 2; | 135 optional Region invalidation = 2; |
135 optional Rect last_updated_visible_layer_rect = 3; | 136 optional Rect last_updated_visible_layer_rect = 3; |
136 optional bool is_mask = 4; | 137 optional bool is_mask = 4; |
137 optional bool nearest_neighbor = 5; | 138 optional bool nearest_neighbor = 5; |
138 | 139 |
139 optional int64 update_source_frame_number = 6; | 140 optional int64 update_source_frame_number = 6; |
140 } | 141 } |
OLD | NEW |