| 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 "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
| 10 #include "ui/gfx/transform.h" | 10 #include "ui/gfx/transform.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 // Container for properties that layers need to compute before they can be | 14 // Container for properties that layers need to compute before they can be |
| 15 // drawn. | 15 // drawn. |
| 16 template <typename LayerType> | 16 template <typename LayerType> |
| 17 struct CC_EXPORT DrawProperties { | 17 struct CC_EXPORT DrawProperties { |
| 18 DrawProperties() | 18 DrawProperties() |
| 19 : opacity(0.f), | 19 : opacity(0.f), |
| 20 opacity_is_animating(false), | 20 opacity_is_animating(false), |
| 21 screen_space_opacity_is_animating(false), | 21 screen_space_opacity_is_animating(false), |
| 22 target_space_transform_is_animating(false), | 22 target_space_transform_is_animating(false), |
| 23 screen_space_transform_is_animating(false), | 23 screen_space_transform_is_animating(false), |
| 24 can_use_lcd_text(false), | 24 can_use_lcd_text(false), |
| 25 is_clipped(false), | 25 is_clipped(false), |
| 26 render_target(NULL), | 26 render_target(nullptr), |
| 27 contents_scale_x(1.f), | 27 contents_scale_x(1.f), |
| 28 contents_scale_y(1.f), | 28 contents_scale_y(1.f), |
| 29 num_unclipped_descendants(0), | 29 num_unclipped_descendants(0), |
| 30 layer_or_descendant_has_copy_request(false), | 30 layer_or_descendant_has_copy_request(false), |
| 31 layer_or_descendant_has_input_handler(false), | 31 layer_or_descendant_has_input_handler(false), |
| 32 has_child_with_a_scroll_parent(false), | 32 has_child_with_a_scroll_parent(false), |
| 33 sorted_for_recursion(false), | 33 sorted_for_recursion(false), |
| 34 index_of_first_descendants_addition(0), | 34 index_of_first_descendants_addition(0), |
| 35 num_descendants_added(0), | 35 num_descendants_added(0), |
| 36 index_of_first_render_surface_layer_list_addition(0), | 36 index_of_first_render_surface_layer_list_addition(0), |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // have page scale applied and others not, this may differ between layers. | 145 // have page scale applied and others not, this may differ between layers. |
| 146 float page_scale_factor; | 146 float page_scale_factor; |
| 147 | 147 |
| 148 // The device scale factor that is applied to the layer. | 148 // The device scale factor that is applied to the layer. |
| 149 float device_scale_factor; | 149 float device_scale_factor; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace cc | 152 } // namespace cc |
| 153 | 153 |
| 154 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ | 154 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
| OLD | NEW |