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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 const gfx::Size& device_viewport_size, | 108 const gfx::Size& device_viewport_size, |
109 const gfx::Transform& device_transform, | 109 const gfx::Transform& device_transform, |
110 LayerImplList* render_surface_layer_list, | 110 LayerImplList* render_surface_layer_list, |
111 int current_render_surface_layer_list_id); | 111 int current_render_surface_layer_list_id); |
112 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, | 112 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, |
113 const gfx::Size& device_viewport_size, | 113 const gfx::Size& device_viewport_size, |
114 LayerImplList* render_surface_layer_list, | 114 LayerImplList* render_surface_layer_list, |
115 int current_render_surface_layer_list_id); | 115 int current_render_surface_layer_list_id); |
116 }; | 116 }; |
117 | 117 |
| 118 static void UpdateRenderSurfaces(Layer* root_layer, |
| 119 bool can_render_to_separate_surface, |
| 120 const gfx::Transform& transform, |
| 121 bool preserves_2d_axis_alignment); |
| 122 static void UpdateRenderSurface(Layer* layer, |
| 123 bool can_render_to_separate_surface, |
| 124 gfx::Transform* transform, |
| 125 bool* animation_preserves_axis_alignment); |
118 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs); | 126 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs); |
119 static void PreCalculateMetaInformation(Layer* root_layer); | 127 static void PreCalculateMetaInformation(Layer* root_layer); |
120 static void PreCalculateMetaInformationForTesting(LayerImpl* root_layer); | 128 static void PreCalculateMetaInformationForTesting(LayerImpl* root_layer); |
121 static void PreCalculateMetaInformationForTesting(Layer* root_layer); | 129 static void PreCalculateMetaInformationForTesting(Layer* root_layer); |
122 | 130 |
123 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); | 131 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); |
124 static void CalculateDrawProperties( | 132 static void CalculateDrawProperties( |
125 CalcDrawPropsImplInputsForTesting* inputs); | 133 CalcDrawPropsImplInputsForTesting* inputs); |
126 | 134 |
127 template <typename LayerType> | 135 template <typename LayerType> |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 function); | 240 function); |
233 } | 241 } |
234 } | 242 } |
235 | 243 |
236 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 244 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
237 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 245 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
238 | 246 |
239 } // namespace cc | 247 } // namespace cc |
240 | 248 |
241 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 249 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
OLD | NEW |