| 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); | |
| 126 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs); | 118 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs); |
| 127 static void PreCalculateMetaInformation(Layer* root_layer); | 119 static void PreCalculateMetaInformation(Layer* root_layer); |
| 128 static void PreCalculateMetaInformationForTesting(LayerImpl* root_layer); | 120 static void PreCalculateMetaInformationForTesting(LayerImpl* root_layer); |
| 129 static void PreCalculateMetaInformationForTesting(Layer* root_layer); | 121 static void PreCalculateMetaInformationForTesting(Layer* root_layer); |
| 130 | 122 |
| 131 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); | 123 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); |
| 132 static void CalculateDrawProperties( | 124 static void CalculateDrawProperties( |
| 133 CalcDrawPropsImplInputsForTesting* inputs); | 125 CalcDrawPropsImplInputsForTesting* inputs); |
| 134 | 126 |
| 135 template <typename LayerType> | 127 template <typename LayerType> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 function); | 232 function); |
| 241 } | 233 } |
| 242 } | 234 } |
| 243 | 235 |
| 244 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 236 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
| 245 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 237 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
| 246 | 238 |
| 247 } // namespace cc | 239 } // namespace cc |
| 248 | 240 |
| 249 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 241 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| OLD | NEW |