| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ | 5 #ifndef CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ |
| 6 #define CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ | 6 #define CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 .maximum_animation_scale; | 151 .maximum_animation_scale; |
| 152 } | 152 } |
| 153 | 153 |
| 154 static float GetStartingAnimationScale(LayerImpl* layer_impl) { | 154 static float GetStartingAnimationScale(LayerImpl* layer_impl) { |
| 155 return layer_impl->layer_tree_impl() | 155 return layer_impl->layer_tree_impl() |
| 156 ->property_trees() | 156 ->property_trees() |
| 157 ->GetAnimationScales(layer_impl->transform_tree_index(), | 157 ->GetAnimationScales(layer_impl->transform_tree_index(), |
| 158 layer_impl->layer_tree_impl()) | 158 layer_impl->layer_tree_impl()) |
| 159 .starting_animation_scale; | 159 .starting_animation_scale; |
| 160 } | 160 } |
| 161 |
| 162 LayerTreeSettings LayerTreeHostCommonTestSettings() { |
| 163 LayerTreeSettings settings; |
| 164 settings.verify_transform_tree_calculations = true; |
| 165 return settings; |
| 166 } |
| 161 }; | 167 }; |
| 162 | 168 |
| 163 } // namespace cc | 169 } // namespace cc |
| 164 | 170 |
| 165 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ | 171 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ |
| OLD | NEW |