| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 bool verify_transform_tree_calculations; | 101 bool verify_transform_tree_calculations; |
| 102 LayerImplList* render_surface_layer_list; | 102 LayerImplList* render_surface_layer_list; |
| 103 PropertyTrees* property_trees; | 103 PropertyTrees* property_trees; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 struct CC_EXPORT CalcDrawPropsImplInputsForTesting | 106 struct CC_EXPORT CalcDrawPropsImplInputsForTesting |
| 107 : public CalcDrawPropsImplInputs { | 107 : public CalcDrawPropsImplInputs { |
| 108 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, | 108 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, |
| 109 const gfx::Size& device_viewport_size, | 109 const gfx::Size& device_viewport_size, |
| 110 const gfx::Transform& device_transform, | 110 const gfx::Transform& device_transform, |
| 111 float device_scale_factor, |
| 112 LayerImplList* render_surface_layer_list); |
| 113 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, |
| 114 const gfx::Size& device_viewport_size, |
| 115 const gfx::Transform& device_transform, |
| 111 LayerImplList* render_surface_layer_list); | 116 LayerImplList* render_surface_layer_list); |
| 112 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, | 117 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, |
| 113 const gfx::Size& device_viewport_size, | 118 const gfx::Size& device_viewport_size, |
| 114 LayerImplList* render_surface_layer_list); | 119 LayerImplList* render_surface_layer_list); |
| 120 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, |
| 121 const gfx::Size& device_viewport_size, |
| 122 float device_scale_factor, |
| 123 LayerImplList* render_surface_layer_list); |
| 115 }; | 124 }; |
| 116 | 125 |
| 117 static int CalculateLayerJitter(LayerImpl* scrolling_layer); | 126 static int CalculateLayerJitter(LayerImpl* scrolling_layer); |
| 118 static void CalculateDrawPropertiesForTesting( | 127 static void CalculateDrawPropertiesForTesting( |
| 119 CalcDrawPropsMainInputsForTesting* inputs); | 128 CalcDrawPropsMainInputsForTesting* inputs); |
| 120 | 129 |
| 121 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); | 130 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); |
| 122 static void CalculateDrawPropertiesForTesting( | 131 static void CalculateDrawPropertiesForTesting( |
| 123 CalcDrawPropsImplInputsForTesting* inputs); | 132 CalcDrawPropsImplInputsForTesting* inputs); |
| 124 | 133 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 function(tree_impl->LayerById(id)); | 204 function(tree_impl->LayerById(id)); |
| 196 } | 205 } |
| 197 } | 206 } |
| 198 | 207 |
| 199 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 208 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
| 200 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 209 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
| 201 | 210 |
| 202 } // namespace cc | 211 } // namespace cc |
| 203 | 212 |
| 204 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 213 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| OLD | NEW |