| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef CC_LAYERS_DRAW_PROPERTIES_H_ | 5 #ifndef CC_LAYERS_DRAW_PROPERTIES_H_ |
| 6 #define CC_LAYERS_DRAW_PROPERTIES_H_ | 6 #define CC_LAYERS_DRAW_PROPERTIES_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/trees/occlusion.h" | 9 #include "cc/trees/occlusion.h" |
| 10 #include "third_party/skia/include/core/SkXfermode.h" | 10 #include "third_party/skia/include/core/SkXfermode.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 target_space_transform_is_animating(false), | 25 target_space_transform_is_animating(false), |
| 26 screen_space_transform_is_animating(false), | 26 screen_space_transform_is_animating(false), |
| 27 can_use_lcd_text(false), | 27 can_use_lcd_text(false), |
| 28 is_clipped(false), | 28 is_clipped(false), |
| 29 render_target(nullptr), | 29 render_target(nullptr), |
| 30 contents_scale_x(1.f), | 30 contents_scale_x(1.f), |
| 31 contents_scale_y(1.f), | 31 contents_scale_y(1.f), |
| 32 num_unclipped_descendants(0), | 32 num_unclipped_descendants(0), |
| 33 layer_or_descendant_has_copy_request(false), | 33 layer_or_descendant_has_copy_request(false), |
| 34 layer_or_descendant_has_input_handler(false), | 34 layer_or_descendant_has_input_handler(false), |
| 35 layer_or_descendant_is_drawn(false), |
| 35 has_child_with_a_scroll_parent(false), | 36 has_child_with_a_scroll_parent(false), |
| 36 sorted_for_recursion(false), | 37 sorted_for_recursion(false), |
| 37 visited(false), | 38 visited(false), |
| 38 index_of_first_descendants_addition(0), | 39 index_of_first_descendants_addition(0), |
| 39 num_descendants_added(0), | 40 num_descendants_added(0), |
| 40 index_of_first_render_surface_layer_list_addition(0), | 41 index_of_first_render_surface_layer_list_addition(0), |
| 41 num_render_surfaces_added(0), | 42 num_render_surfaces_added(0), |
| 42 last_drawn_render_surface_layer_list_id(0), | 43 last_drawn_render_surface_layer_list_id(0), |
| 43 ideal_contents_scale(0.f), | 44 ideal_contents_scale(0.f), |
| 44 maximum_animation_contents_scale(0.f), | 45 maximum_animation_contents_scale(0.f), |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // does not include our clip children because they are clipped by us. | 108 // does not include our clip children because they are clipped by us. |
| 108 int num_unclipped_descendants; | 109 int num_unclipped_descendants; |
| 109 | 110 |
| 110 // If true, the layer or some layer in its sub-tree has a CopyOutputRequest | 111 // If true, the layer or some layer in its sub-tree has a CopyOutputRequest |
| 111 // present on it. | 112 // present on it. |
| 112 bool layer_or_descendant_has_copy_request; | 113 bool layer_or_descendant_has_copy_request; |
| 113 | 114 |
| 114 // If true, the layer or one of its descendants has a wheel or touch handler. | 115 // If true, the layer or one of its descendants has a wheel or touch handler. |
| 115 bool layer_or_descendant_has_input_handler; | 116 bool layer_or_descendant_has_input_handler; |
| 116 | 117 |
| 118 // If true, the layer or one of its descendants is drawn |
| 119 bool layer_or_descendant_is_drawn; |
| 120 |
| 117 // This is true if the layer has any direct child that has a scroll parent. | 121 // This is true if the layer has any direct child that has a scroll parent. |
| 118 // This layer will not be the scroll parent in this case. This information | 122 // This layer will not be the scroll parent in this case. This information |
| 119 // lets us avoid work in CalculateDrawPropertiesInternal -- if none of our | 123 // lets us avoid work in CalculateDrawPropertiesInternal -- if none of our |
| 120 // children have scroll parents, we will not need to recur out of order. | 124 // children have scroll parents, we will not need to recur out of order. |
| 121 bool has_child_with_a_scroll_parent; | 125 bool has_child_with_a_scroll_parent; |
| 122 | 126 |
| 123 // This is true if the order (wrt to its siblings in the tree) in which the | 127 // This is true if the order (wrt to its siblings in the tree) in which the |
| 124 // layer will be visited while computing draw properties has been determined. | 128 // layer will be visited while computing draw properties has been determined. |
| 125 bool sorted_for_recursion; | 129 bool sorted_for_recursion; |
| 126 | 130 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 156 // have page scale applied and others not, this may differ between layers. | 160 // have page scale applied and others not, this may differ between layers. |
| 157 float page_scale_factor; | 161 float page_scale_factor; |
| 158 | 162 |
| 159 // The device scale factor that is applied to the layer. | 163 // The device scale factor that is applied to the layer. |
| 160 float device_scale_factor; | 164 float device_scale_factor; |
| 161 }; | 165 }; |
| 162 | 166 |
| 163 } // namespace cc | 167 } // namespace cc |
| 164 | 168 |
| 165 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ | 169 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
| OLD | NEW |