| 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 "display_list_recording_source.proto"; | 7 import "display_list_recording_source.proto"; |
| 8 import "layer_position_constraint.proto"; | 8 import "layer_position_constraint.proto"; |
| 9 import "point3f.proto"; | 9 import "point3f.proto"; |
| 10 import "pointf.proto"; | 10 import "pointf.proto"; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // The Layer base class and each descendant have different proto messages | 62 // The Layer base class and each descendant have different proto messages |
| 63 // for their specific properties. | 63 // for their specific properties. |
| 64 optional BaseLayerProperties base = 5; | 64 optional BaseLayerProperties base = 5; |
| 65 | 65 |
| 66 // Only one of these fields may be set per LayerProperties. | 66 // Only one of these fields may be set per LayerProperties. |
| 67 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See | 67 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See |
| 68 // crbug.com/570371. | 68 // crbug.com/570371. |
| 69 optional PictureLayerProperties picture = 6; | 69 optional PictureLayerProperties picture = 6; |
| 70 } | 70 } |
| 71 | 71 |
| 72 // NEXT ID: 54 | 72 // NEXT ID: 53 |
| 73 message BaseLayerProperties { | 73 message BaseLayerProperties { |
| 74 optional Point3F transform_origin = 1; | 74 optional Point3F transform_origin = 1; |
| 75 optional uint32 background_color = 2; | 75 optional uint32 background_color = 2; |
| 76 optional Size bounds = 3; | 76 optional Size bounds = 3; |
| 77 optional int64 transform_free_index = 4; | 77 optional int64 transform_free_index = 4; |
| 78 optional int64 effect_tree_index = 5; | 78 optional int64 effect_tree_index = 5; |
| 79 optional int64 clip_tree_index = 6; | 79 optional int64 clip_tree_index = 6; |
| 80 optional int64 scroll_tree_index = 50; | 80 optional int64 scroll_tree_index = 50; |
| 81 optional Vector2dF offset_to_transform_parent = 7; | 81 optional Vector2dF offset_to_transform_parent = 7; |
| 82 optional bool double_sided = 8; | 82 optional bool double_sided = 8; |
| 83 optional bool draws_content = 9; | 83 optional bool draws_content = 9; |
| 84 optional bool hide_layer_and_subtree = 10; | 84 optional bool hide_layer_and_subtree = 10; |
| 85 optional bool has_render_surface = 11; | 85 optional bool has_render_surface = 11; |
| 86 optional bool subtree_property_changed = 53; | 86 optional bool subtree_property_changed = 47; |
| 87 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. | 87 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. |
| 88 // repeated FilterOperation filters = 12; | 88 // repeated FilterOperation filters = 12; |
| 89 // repeated FilterOperation background_filters = 13; | 89 // repeated FilterOperation background_filters = 13; |
| 90 optional bool masks_to_bounds = 14; | 90 optional bool masks_to_bounds = 14; |
| 91 optional uint32 main_thread_scrolling_reasons = 15; | 91 optional uint32 main_thread_scrolling_reasons = 15; |
| 92 optional bool have_scroll_event_handlers = 17; | 92 optional bool have_scroll_event_handlers = 17; |
| 93 optional Region non_fast_scrollable_region = 18; | 93 optional Region non_fast_scrollable_region = 18; |
| 94 optional Region touch_event_handler_region = 19; | 94 optional Region touch_event_handler_region = 19; |
| 95 optional bool contents_opaque = 21; | 95 optional bool contents_opaque = 21; |
| 96 optional float opacity = 22; | 96 optional float opacity = 22; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 118 optional int32 scroll_parent_id = 40; | 118 optional int32 scroll_parent_id = 40; |
| 119 repeated int32 scroll_children_ids = 41; | 119 repeated int32 scroll_children_ids = 41; |
| 120 | 120 |
| 121 optional int32 clip_parent_id = 42; | 121 optional int32 clip_parent_id = 42; |
| 122 repeated int32 clip_children_ids = 43; | 122 repeated int32 clip_children_ids = 43; |
| 123 | 123 |
| 124 optional ScrollOffset scroll_offset = 44; | 124 optional ScrollOffset scroll_offset = 44; |
| 125 optional Vector2dF scroll_compensation_adjustment = 45; | 125 optional Vector2dF scroll_compensation_adjustment = 45; |
| 126 | 126 |
| 127 optional Rect update_rect = 46; | 127 optional Rect update_rect = 46; |
| 128 optional bool stacking_order_changed = 47; | |
| 129 | 128 |
| 130 // TODO(nyquist): Figure out what to do with LayerAnimationController. | 129 // TODO(nyquist): Figure out what to do with LayerAnimationController. |
| 131 // optional LayerAnimationController layer_animation_controller = 48; | 130 // optional LayerAnimationController layer_animation_controller = 48; |
| 132 | 131 |
| 133 // TODO(nyquist): Figure out what to do with FrameTimingRequests. | 132 // TODO(nyquist): Figure out what to do with FrameTimingRequests. |
| 134 // repeated FrameTimingRequest frame_timing_requests = 49; | 133 // repeated FrameTimingRequest frame_timing_requests = 49; |
| 135 } | 134 } |
| 136 | 135 |
| 137 message PictureLayerProperties { | 136 message PictureLayerProperties { |
| 138 optional DisplayListRecordingSource recording_source = 1; | 137 optional DisplayListRecordingSource recording_source = 1; |
| 139 optional Region invalidation = 2; | 138 optional Region invalidation = 2; |
| 140 optional Rect last_updated_visible_layer_rect = 3; | 139 optional Rect last_updated_visible_layer_rect = 3; |
| 141 optional bool is_mask = 4; | 140 optional bool is_mask = 4; |
| 142 optional bool nearest_neighbor = 5; | 141 optional bool nearest_neighbor = 5; |
| 143 | 142 |
| 144 optional int64 update_source_frame_number = 6; | 143 optional int64 update_source_frame_number = 6; |
| 145 } | 144 } |
| OLD | NEW |