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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_visible_rect_calculations, | 83 bool verify_visible_rect_calculations, |
84 bool verify_transform_tree_calculations, | |
85 LayerImplList* render_surface_layer_list, | 84 LayerImplList* render_surface_layer_list, |
86 PropertyTrees* property_trees); | 85 PropertyTrees* property_trees); |
87 | 86 |
88 LayerImpl* root_layer; | 87 LayerImpl* root_layer; |
89 gfx::Size device_viewport_size; | 88 gfx::Size device_viewport_size; |
90 gfx::Transform device_transform; | 89 gfx::Transform device_transform; |
91 float device_scale_factor; | 90 float device_scale_factor; |
92 float page_scale_factor; | 91 float page_scale_factor; |
93 const LayerImpl* page_scale_layer; | 92 const LayerImpl* page_scale_layer; |
94 const LayerImpl* inner_viewport_scroll_layer; | 93 const LayerImpl* inner_viewport_scroll_layer; |
95 const LayerImpl* outer_viewport_scroll_layer; | 94 const LayerImpl* outer_viewport_scroll_layer; |
96 gfx::Vector2dF elastic_overscroll; | 95 gfx::Vector2dF elastic_overscroll; |
97 const LayerImpl* elastic_overscroll_application_layer; | 96 const LayerImpl* elastic_overscroll_application_layer; |
98 int max_texture_size; | 97 int max_texture_size; |
99 bool can_render_to_separate_surface; | 98 bool can_render_to_separate_surface; |
100 bool can_adjust_raster_scales; | 99 bool can_adjust_raster_scales; |
101 bool verify_clip_tree_calculations; | 100 bool verify_clip_tree_calculations; |
102 bool verify_visible_rect_calculations; | 101 bool verify_visible_rect_calculations; |
103 bool verify_transform_tree_calculations; | |
104 LayerImplList* render_surface_layer_list; | 102 LayerImplList* render_surface_layer_list; |
105 PropertyTrees* property_trees; | 103 PropertyTrees* property_trees; |
106 }; | 104 }; |
107 | 105 |
108 struct CC_EXPORT CalcDrawPropsImplInputsForTesting | 106 struct CC_EXPORT CalcDrawPropsImplInputsForTesting |
109 : public CalcDrawPropsImplInputs { | 107 : public CalcDrawPropsImplInputs { |
110 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, | 108 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, |
111 const gfx::Size& device_viewport_size, | 109 const gfx::Size& device_viewport_size, |
112 const gfx::Transform& device_transform, | 110 const gfx::Transform& device_transform, |
113 float device_scale_factor, | 111 float device_scale_factor, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 function(tree_impl->LayerById(id)); | 198 function(tree_impl->LayerById(id)); |
201 } | 199 } |
202 } | 200 } |
203 | 201 |
204 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 202 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
205 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 203 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
206 | 204 |
207 } // namespace cc | 205 } // namespace cc |
208 | 206 |
209 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 207 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
OLD | NEW |