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 <limits> | 8 #include <limits> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 const LayerImpl* inner_viewport_scroll_layer, | 68 const LayerImpl* inner_viewport_scroll_layer, |
69 const LayerImpl* outer_viewport_scroll_layer, | 69 const LayerImpl* outer_viewport_scroll_layer, |
70 const gfx::Vector2dF& elastic_overscroll, | 70 const gfx::Vector2dF& elastic_overscroll, |
71 const LayerImpl* elastic_overscroll_application_layer, | 71 const LayerImpl* elastic_overscroll_application_layer, |
72 int max_texture_size, | 72 int max_texture_size, |
73 bool can_use_lcd_text, | 73 bool can_use_lcd_text, |
74 bool layers_always_allowed_lcd_text, | 74 bool layers_always_allowed_lcd_text, |
75 bool can_render_to_separate_surface, | 75 bool can_render_to_separate_surface, |
76 bool can_adjust_raster_scales, | 76 bool can_adjust_raster_scales, |
77 bool verify_property_trees, | 77 bool verify_property_trees, |
| 78 bool use_property_trees, |
78 LayerImplList* render_surface_layer_list, | 79 LayerImplList* render_surface_layer_list, |
79 int current_render_surface_layer_list_id, | 80 int current_render_surface_layer_list_id, |
80 PropertyTrees* property_trees); | 81 PropertyTrees* property_trees); |
81 | 82 |
82 LayerImpl* root_layer; | 83 LayerImpl* root_layer; |
83 gfx::Size device_viewport_size; | 84 gfx::Size device_viewport_size; |
84 gfx::Transform device_transform; | 85 gfx::Transform device_transform; |
85 float device_scale_factor; | 86 float device_scale_factor; |
86 float page_scale_factor; | 87 float page_scale_factor; |
87 const LayerImpl* page_scale_layer; | 88 const LayerImpl* page_scale_layer; |
88 const LayerImpl* inner_viewport_scroll_layer; | 89 const LayerImpl* inner_viewport_scroll_layer; |
89 const LayerImpl* outer_viewport_scroll_layer; | 90 const LayerImpl* outer_viewport_scroll_layer; |
90 gfx::Vector2dF elastic_overscroll; | 91 gfx::Vector2dF elastic_overscroll; |
91 const LayerImpl* elastic_overscroll_application_layer; | 92 const LayerImpl* elastic_overscroll_application_layer; |
92 int max_texture_size; | 93 int max_texture_size; |
93 bool can_use_lcd_text; | 94 bool can_use_lcd_text; |
94 bool layers_always_allowed_lcd_text; | 95 bool layers_always_allowed_lcd_text; |
95 bool can_render_to_separate_surface; | 96 bool can_render_to_separate_surface; |
96 bool can_adjust_raster_scales; | 97 bool can_adjust_raster_scales; |
97 bool verify_property_trees; | 98 bool verify_property_trees; |
| 99 bool use_property_trees; |
98 LayerImplList* render_surface_layer_list; | 100 LayerImplList* render_surface_layer_list; |
99 int current_render_surface_layer_list_id; | 101 int current_render_surface_layer_list_id; |
100 PropertyTrees* property_trees; | 102 PropertyTrees* property_trees; |
101 }; | 103 }; |
102 | 104 |
103 struct CC_EXPORT CalcDrawPropsImplInputsForTesting | 105 struct CC_EXPORT CalcDrawPropsImplInputsForTesting |
104 : public CalcDrawPropsImplInputs { | 106 : public CalcDrawPropsImplInputs { |
105 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, | 107 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, |
106 const gfx::Size& device_viewport_size, | 108 const gfx::Size& device_viewport_size, |
107 const gfx::Transform& device_transform, | 109 const gfx::Transform& device_transform, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 function); | 235 function); |
234 } | 236 } |
235 } | 237 } |
236 | 238 |
237 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 239 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
238 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 240 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
239 | 241 |
240 } // namespace cc | 242 } // namespace cc |
241 | 243 |
242 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 244 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
OLD | NEW |