| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_TREES_LAYER_TREE_HOST_COMMON_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 float page_scale_factor, | 73 float page_scale_factor, |
| 74 const LayerImpl* page_scale_layer, | 74 const LayerImpl* page_scale_layer, |
| 75 const LayerImpl* inner_viewport_scroll_layer, | 75 const LayerImpl* inner_viewport_scroll_layer, |
| 76 const LayerImpl* outer_viewport_scroll_layer, | 76 const LayerImpl* outer_viewport_scroll_layer, |
| 77 const gfx::Vector2dF& elastic_overscroll, | 77 const gfx::Vector2dF& elastic_overscroll, |
| 78 const LayerImpl* elastic_overscroll_application_layer, | 78 const LayerImpl* elastic_overscroll_application_layer, |
| 79 int max_texture_size, | 79 int max_texture_size, |
| 80 bool can_render_to_separate_surface, | 80 bool can_render_to_separate_surface, |
| 81 bool can_adjust_raster_scales, | 81 bool can_adjust_raster_scales, |
| 82 bool verify_clip_tree_calculations, | 82 bool verify_clip_tree_calculations, |
| 83 bool verify_transform_tree_calculations, | |
| 84 LayerImplList* render_surface_layer_list, | 83 LayerImplList* render_surface_layer_list, |
| 85 PropertyTrees* property_trees); | 84 PropertyTrees* property_trees); |
| 86 | 85 |
| 87 LayerImpl* root_layer; | 86 LayerImpl* root_layer; |
| 88 gfx::Size device_viewport_size; | 87 gfx::Size device_viewport_size; |
| 89 gfx::Transform device_transform; | 88 gfx::Transform device_transform; |
| 90 float device_scale_factor; | 89 float device_scale_factor; |
| 91 float page_scale_factor; | 90 float page_scale_factor; |
| 92 const LayerImpl* page_scale_layer; | 91 const LayerImpl* page_scale_layer; |
| 93 const LayerImpl* inner_viewport_scroll_layer; | 92 const LayerImpl* inner_viewport_scroll_layer; |
| 94 const LayerImpl* outer_viewport_scroll_layer; | 93 const LayerImpl* outer_viewport_scroll_layer; |
| 95 gfx::Vector2dF elastic_overscroll; | 94 gfx::Vector2dF elastic_overscroll; |
| 96 const LayerImpl* elastic_overscroll_application_layer; | 95 const LayerImpl* elastic_overscroll_application_layer; |
| 97 int max_texture_size; | 96 int max_texture_size; |
| 98 bool can_render_to_separate_surface; | 97 bool can_render_to_separate_surface; |
| 99 bool can_adjust_raster_scales; | 98 bool can_adjust_raster_scales; |
| 100 bool verify_clip_tree_calculations; | 99 bool verify_clip_tree_calculations; |
| 101 bool verify_transform_tree_calculations; | |
| 102 LayerImplList* render_surface_layer_list; | 100 LayerImplList* render_surface_layer_list; |
| 103 PropertyTrees* property_trees; | 101 PropertyTrees* property_trees; |
| 104 }; | 102 }; |
| 105 | 103 |
| 106 struct CC_EXPORT CalcDrawPropsImplInputsForTesting | 104 struct CC_EXPORT CalcDrawPropsImplInputsForTesting |
| 107 : public CalcDrawPropsImplInputs { | 105 : public CalcDrawPropsImplInputs { |
| 108 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, | 106 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, |
| 109 const gfx::Size& device_viewport_size, | 107 const gfx::Size& device_viewport_size, |
| 110 const gfx::Transform& device_transform, | 108 const gfx::Transform& device_transform, |
| 111 float device_scale_factor, | 109 float device_scale_factor, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 function(tree_impl->LayerById(id)); | 202 function(tree_impl->LayerById(id)); |
| 205 } | 203 } |
| 206 } | 204 } |
| 207 | 205 |
| 208 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 206 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
| 209 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 207 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
| 210 | 208 |
| 211 } // namespace cc | 209 } // namespace cc |
| 212 | 210 |
| 213 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 211 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| OLD | NEW |