| 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 25 matching lines...) Expand all Loading... |
| 36 has_child_with_a_scroll_parent(false), | 36 has_child_with_a_scroll_parent(false), |
| 37 sorted_for_recursion(false), | 37 sorted_for_recursion(false), |
| 38 visited(false), | 38 visited(false), |
| 39 index_of_first_descendants_addition(0), | 39 index_of_first_descendants_addition(0), |
| 40 num_descendants_added(0), | 40 num_descendants_added(0), |
| 41 index_of_first_render_surface_layer_list_addition(0), | 41 index_of_first_render_surface_layer_list_addition(0), |
| 42 num_render_surfaces_added(0), | 42 num_render_surfaces_added(0), |
| 43 last_drawn_render_surface_layer_list_id(0), | 43 last_drawn_render_surface_layer_list_id(0), |
| 44 ideal_contents_scale(0.f), | 44 ideal_contents_scale(0.f), |
| 45 maximum_animation_contents_scale(0.f), | 45 maximum_animation_contents_scale(0.f), |
| 46 starting_animation_contents_scale(0.f), |
| 46 page_scale_factor(0.f), | 47 page_scale_factor(0.f), |
| 47 device_scale_factor(0.f) {} | 48 device_scale_factor(0.f) {} |
| 48 | 49 |
| 49 // Transforms objects from content space to target surface space, where | 50 // Transforms objects from content space to target surface space, where |
| 50 // this layer would be drawn. | 51 // this layer would be drawn. |
| 51 gfx::Transform target_space_transform; | 52 gfx::Transform target_space_transform; |
| 52 | 53 |
| 53 // Transforms objects from content space to screen space (viewport space). | 54 // Transforms objects from content space to screen space (viewport space). |
| 54 gfx::Transform screen_space_transform; | 55 gfx::Transform screen_space_transform; |
| 55 | 56 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 int last_drawn_render_surface_layer_list_id; | 150 int last_drawn_render_surface_layer_list_id; |
| 150 | 151 |
| 151 // The scale at which content for the layer should be rastered in order to be | 152 // The scale at which content for the layer should be rastered in order to be |
| 152 // perfectly crisp. | 153 // perfectly crisp. |
| 153 float ideal_contents_scale; | 154 float ideal_contents_scale; |
| 154 | 155 |
| 155 // The maximum scale during the layers current animation at which content | 156 // The maximum scale during the layers current animation at which content |
| 156 // should be rastered at to be crisp. | 157 // should be rastered at to be crisp. |
| 157 float maximum_animation_contents_scale; | 158 float maximum_animation_contents_scale; |
| 158 | 159 |
| 160 // The scale during the layer animation start at which content should be |
| 161 // rastered at to be crisp. |
| 162 float starting_animation_contents_scale; |
| 163 |
| 159 // The page scale factor that is applied to the layer. Since some layers may | 164 // The page scale factor that is applied to the layer. Since some layers may |
| 160 // have page scale applied and others not, this may differ between layers. | 165 // have page scale applied and others not, this may differ between layers. |
| 161 float page_scale_factor; | 166 float page_scale_factor; |
| 162 | 167 |
| 163 // The device scale factor that is applied to the layer. | 168 // The device scale factor that is applied to the layer. |
| 164 float device_scale_factor; | 169 float device_scale_factor; |
| 165 }; | 170 }; |
| 166 | 171 |
| 167 } // namespace cc | 172 } // namespace cc |
| 168 | 173 |
| 169 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ | 174 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
| OLD | NEW |