| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 optional PictureLayerProperties picture = 6; | 69 optional PictureLayerProperties picture = 6; |
| 70 } | 70 } |
| 71 | 71 |
| 72 message BaseLayerProperties { | 72 message BaseLayerProperties { |
| 73 optional Point3F transform_origin = 1; | 73 optional Point3F transform_origin = 1; |
| 74 optional uint32 background_color = 2; | 74 optional uint32 background_color = 2; |
| 75 optional Size bounds = 3; | 75 optional Size bounds = 3; |
| 76 optional int64 transform_free_index = 4; | 76 optional int64 transform_free_index = 4; |
| 77 optional int64 effect_tree_index = 5; | 77 optional int64 effect_tree_index = 5; |
| 78 optional int64 clip_tree_index = 6; | 78 optional int64 clip_tree_index = 6; |
| 79 optional Vector2dF offset_to_transform_parent = 7; | 79 optional int64 scroll_tree_index = 7; |
| 80 optional bool double_sided = 8; | 80 optional Vector2dF offset_to_transform_parent = 8; |
| 81 optional bool draws_content = 9; | 81 optional bool double_sided = 9; |
| 82 optional bool hide_layer_and_subtree = 10; | 82 optional bool draws_content = 10; |
| 83 optional bool has_render_surface = 11; | 83 optional bool hide_layer_and_subtree = 11; |
| 84 optional bool has_render_surface = 12; |
| 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 = 13; |
| 86 // repeated FilterOperation background_filters = 13; | 87 // repeated FilterOperation background_filters = 14; |
| 87 optional bool masks_to_bounds = 14; | 88 optional bool masks_to_bounds = 15; |
| 88 optional uint32 main_thread_scrolling_reasons = 15; | 89 optional uint32 main_thread_scrolling_reasons = 16; |
| 89 optional bool have_wheel_event_handlers = 16; | 90 optional bool have_wheel_event_handlers = 17; |
| 90 optional bool have_scroll_event_handlers = 17; | 91 optional bool have_scroll_event_handlers = 18; |
| 91 optional Region non_fast_scrollable_region = 18; | 92 optional Region non_fast_scrollable_region = 19; |
| 92 optional Region touch_event_handler_region = 19; | 93 optional Region touch_event_handler_region = 20; |
| 93 optional int32 scroll_blocks_on = 20; | 94 optional int32 scroll_blocks_on = 21; |
| 94 optional bool contents_opaque = 21; | 95 optional bool contents_opaque = 22; |
| 95 optional float opacity = 22; | 96 optional float opacity = 23; |
| 96 optional SkXfermode.Mode blend_mode = 23; | 97 optional SkXfermode.Mode blend_mode = 24; |
| 97 optional bool is_root_for_isolated_group = 24; | 98 optional bool is_root_for_isolated_group = 25; |
| 98 optional PointF position = 25; | 99 optional PointF position = 26; |
| 99 optional bool is_container_for_fixed_position_layers = 26; | 100 optional bool is_container_for_fixed_position_layers = 27; |
| 100 optional LayerPositionConstraint position_constraint = 27; | 101 optional LayerPositionConstraint position_constraint = 28; |
| 101 optional bool should_flatten_transform = 28; | 102 optional bool should_flatten_transform = 29; |
| 102 optional bool should_flatten_transform_from_property_tree = 29; | 103 optional bool should_flatten_transform_from_property_tree = 30; |
| 103 optional int32 num_layer_or_descendants_with_copy_request = 30; | 104 optional int32 num_layer_or_descendants_with_copy_request = 31; |
| 104 optional SkXfermode.Mode draw_blend_mode = 31; | 105 optional SkXfermode.Mode draw_blend_mode = 32; |
| 105 optional bool use_parent_backface_visibility = 32; | 106 optional bool use_parent_backface_visibility = 33; |
| 106 optional Transform transform = 33; | 107 optional Transform transform = 34; |
| 107 optional bool transform_is_invertible = 34; | 108 optional bool transform_is_invertible = 35; |
| 108 optional int32 sorting_context_id = 35; | 109 optional int32 sorting_context_id = 36; |
| 109 optional int32 num_descendants_that_draw_content = 36; | 110 optional int32 num_descendants_that_draw_content = 37; |
| 110 | 111 |
| 111 optional int32 scroll_clip_layer_id = 37; | 112 optional int32 scroll_clip_layer_id = 38; |
| 112 optional bool user_scrollable_horizontal = 38; | 113 optional bool user_scrollable_horizontal = 39; |
| 113 optional bool user_scrollable_vertical = 39; | 114 optional bool user_scrollable_vertical = 40; |
| 114 | 115 |
| 115 optional int32 scroll_parent_id = 40; | 116 optional int32 scroll_parent_id = 41; |
| 116 repeated int32 scroll_children_ids = 41; | 117 repeated int32 scroll_children_ids = 42; |
| 117 | 118 |
| 118 optional int32 clip_parent_id = 42; | 119 optional int32 clip_parent_id = 43; |
| 119 repeated int32 clip_children_ids = 43; | 120 repeated int32 clip_children_ids = 44; |
| 120 | 121 |
| 121 optional ScrollOffset scroll_offset = 44; | 122 optional ScrollOffset scroll_offset = 45; |
| 122 optional Vector2dF scroll_compensation_adjustment = 45; | 123 optional Vector2dF scroll_compensation_adjustment = 46; |
| 123 | 124 |
| 124 optional Rect update_rect = 46; | 125 optional Rect update_rect = 47; |
| 125 optional bool stacking_order_changed = 47; | 126 optional bool stacking_order_changed = 48; |
| 126 | 127 |
| 127 // TODO(nyquist): Figure out what to do with LayerAnimationController. | 128 // TODO(nyquist): Figure out what to do with LayerAnimationController. |
| 128 // optional LayerAnimationController layer_animation_controller = 48; | 129 // optional LayerAnimationController layer_animation_controller = 49; |
| 129 | 130 |
| 130 // TODO(nyquist): Figure out what to do with FrameTimingRequests. | 131 // TODO(nyquist): Figure out what to do with FrameTimingRequests. |
| 131 // repeated FrameTimingRequest frame_timing_requests = 49; | 132 // repeated FrameTimingRequest frame_timing_requests = 50; |
| 132 } | 133 } |
| 133 | 134 |
| 134 message PictureLayerProperties { | 135 message PictureLayerProperties { |
| 135 optional DisplayListRecordingSource recording_source = 1; | 136 optional DisplayListRecordingSource recording_source = 1; |
| 136 optional Region invalidation = 2; | 137 optional Region invalidation = 2; |
| 137 optional Rect last_updated_visible_layer_rect = 3; | 138 optional Rect last_updated_visible_layer_rect = 3; |
| 138 optional bool is_mask = 4; | 139 optional bool is_mask = 4; |
| 139 optional bool nearest_neighbor = 5; | 140 optional bool nearest_neighbor = 5; |
| 140 | 141 |
| 141 optional int64 update_source_frame_number = 6; | 142 optional int64 update_source_frame_number = 6; |
| 142 } | 143 } |
| OLD | NEW |