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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 static void UpdateRenderSurface(Layer* layer, | 119 static void UpdateRenderSurface(Layer* layer, |
120 bool can_render_to_separate_surface, | 120 bool can_render_to_separate_surface, |
121 gfx::Transform* transform, | 121 gfx::Transform* transform, |
122 bool* animation_preserves_axis_alignment); | 122 bool* animation_preserves_axis_alignment); |
123 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs); | 123 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs); |
124 | 124 |
125 typedef CalcDrawPropsInputs<LayerImpl, LayerImplList> CalcDrawPropsImplInputs; | 125 typedef CalcDrawPropsInputs<LayerImpl, LayerImplList> CalcDrawPropsImplInputs; |
126 typedef CalcDrawPropsInputsForTesting<LayerImpl, LayerImplList> | 126 typedef CalcDrawPropsInputsForTesting<LayerImpl, LayerImplList> |
127 CalcDrawPropsImplInputsForTesting; | 127 CalcDrawPropsImplInputsForTesting; |
128 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); | 128 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); |
| 129 static void CalculateDrawProperties( |
| 130 CalcDrawPropsImplInputsForTesting* inputs); |
129 | 131 |
130 template <typename LayerType> | 132 template <typename LayerType> |
131 static bool RenderSurfaceContributesToTarget(LayerType*, | 133 static bool RenderSurfaceContributesToTarget(LayerType*, |
132 int target_surface_layer_id); | 134 int target_surface_layer_id); |
133 | 135 |
134 template <typename LayerType, typename Function> | 136 template <typename LayerType, typename Function> |
135 static void CallFunctionForSubtree(LayerType* layer, | 137 static void CallFunctionForSubtree(LayerType* layer, |
136 const Function& function); | 138 const Function& function); |
137 | 139 |
138 // Returns a layer with the given id if one exists in the subtree starting | 140 // Returns a layer with the given id if one exists in the subtree starting |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 render_surface_layer_list, | 295 render_surface_layer_list, |
294 0, | 296 0, |
295 GetPropertyTrees(root_layer, &temporary_property_trees)) { | 297 GetPropertyTrees(root_layer, &temporary_property_trees)) { |
296 DCHECK(root_layer); | 298 DCHECK(root_layer); |
297 DCHECK(render_surface_layer_list); | 299 DCHECK(render_surface_layer_list); |
298 } | 300 } |
299 | 301 |
300 } // namespace cc | 302 } // namespace cc |
301 | 303 |
302 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 304 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
OLD | NEW |