| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const gfx::Transform& device_transform, | 110 const gfx::Transform& device_transform, |
| 111 LayerImplList* render_surface_layer_list); | 111 LayerImplList* render_surface_layer_list); |
| 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 }; | 115 }; |
| 116 | 116 |
| 117 static int CalculateLayerJitter(LayerImpl* scrolling_layer); | 117 static int CalculateLayerJitter(LayerImpl* scrolling_layer); |
| 118 static void CalculateDrawPropertiesForTesting( | 118 static void CalculateDrawPropertiesForTesting( |
| 119 CalcDrawPropsMainInputsForTesting* inputs); | 119 CalcDrawPropsMainInputsForTesting* inputs); |
| 120 static void PreCalculateMetaInformation(Layer* root_layer); | |
| 121 static void PreCalculateMetaInformationForTesting(LayerImpl* root_layer); | |
| 122 static void PreCalculateMetaInformationForTesting(Layer* root_layer); | |
| 123 | 120 |
| 124 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); | 121 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); |
| 125 static void CalculateDrawProperties( | 122 static void CalculateDrawPropertiesForTesting( |
| 126 CalcDrawPropsImplInputsForTesting* inputs); | 123 CalcDrawPropsImplInputsForTesting* inputs); |
| 127 | 124 |
| 128 template <typename Function> | 125 template <typename Function> |
| 129 static void CallFunctionForEveryLayer(LayerTreeHost* layer, | 126 static void CallFunctionForEveryLayer(LayerTreeHost* layer, |
| 130 const Function& function); | 127 const Function& function); |
| 131 | 128 |
| 132 template <typename Function> | 129 template <typename Function> |
| 133 static void CallFunctionForEveryLayer(LayerTreeImpl* layer, | 130 static void CallFunctionForEveryLayer(LayerTreeImpl* layer, |
| 134 const Function& function); | 131 const Function& function); |
| 135 | 132 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 for (auto* layer : *host_impl) | 187 for (auto* layer : *host_impl) |
| 191 CallFunctionForLayer(layer, function); | 188 CallFunctionForLayer(layer, function); |
| 192 } | 189 } |
| 193 | 190 |
| 194 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 191 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
| 195 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 192 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
| 196 | 193 |
| 197 } // namespace cc | 194 } // namespace cc |
| 198 | 195 |
| 199 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 196 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| OLD | NEW |