| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 LayerImplList* render_surface_layer_list; | 100 LayerImplList* render_surface_layer_list; |
| 101 int current_render_surface_layer_list_id; | 101 int current_render_surface_layer_list_id; |
| 102 PropertyTrees* property_trees; | 102 PropertyTrees* property_trees; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 struct CC_EXPORT CalcDrawPropsImplInputsForTesting | 105 struct CC_EXPORT CalcDrawPropsImplInputsForTesting |
| 106 : public CalcDrawPropsImplInputs { | 106 : public CalcDrawPropsImplInputs { |
| 107 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, | 107 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, |
| 108 const gfx::Size& device_viewport_size, | 108 const gfx::Size& device_viewport_size, |
| 109 const gfx::Transform& device_transform, | 109 const gfx::Transform& device_transform, |
| 110 LayerImplList* render_surface_layer_list); | 110 LayerImplList* render_surface_layer_list, |
| 111 int current_render_surface_layer_list_id); |
| 111 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, | 112 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, |
| 112 const gfx::Size& device_viewport_size, | 113 const gfx::Size& device_viewport_size, |
| 113 LayerImplList* render_surface_layer_list); | 114 LayerImplList* render_surface_layer_list, |
| 115 int current_render_surface_layer_list_id); |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 static void UpdateRenderSurfaces(Layer* root_layer, | 118 static void UpdateRenderSurfaces(Layer* root_layer, |
| 117 bool can_render_to_separate_surface, | 119 bool can_render_to_separate_surface, |
| 118 const gfx::Transform& transform, | 120 const gfx::Transform& transform, |
| 119 bool preserves_2d_axis_alignment); | 121 bool preserves_2d_axis_alignment); |
| 120 static void UpdateRenderSurface(Layer* layer, | 122 static void UpdateRenderSurface(Layer* layer, |
| 121 bool can_render_to_separate_surface, | 123 bool can_render_to_separate_surface, |
| 122 gfx::Transform* transform, | 124 gfx::Transform* transform, |
| 123 bool* animation_preserves_axis_alignment); | 125 bool* animation_preserves_axis_alignment); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 function); | 240 function); |
| 239 } | 241 } |
| 240 } | 242 } |
| 241 | 243 |
| 242 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); | 244 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); |
| 243 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); | 245 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); |
| 244 | 246 |
| 245 } // namespace cc | 247 } // namespace cc |
| 246 | 248 |
| 247 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 249 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
| OLD | NEW |