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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 render_surface_layer_list, | 290 render_surface_layer_list, |
289 0, | 291 0, |
290 &property_trees) { | 292 &property_trees) { |
291 DCHECK(root_layer); | 293 DCHECK(root_layer); |
292 DCHECK(render_surface_layer_list); | 294 DCHECK(render_surface_layer_list); |
293 } | 295 } |
294 | 296 |
295 } // namespace cc | 297 } // namespace cc |
296 | 298 |
297 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 299 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
OLD | NEW |