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_TREES_DRAW_PROPERTY_UTILS_H_ | 5 #ifndef CC_TREES_DRAW_PROPERTY_UTILS_H_ |
6 #define CC_TREES_DRAW_PROPERTY_UTILS_H_ | 6 #define CC_TREES_DRAW_PROPERTY_UTILS_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/layers/layer_collections.h" | 9 #include "cc/layers/layer_collections.h" |
10 | 10 |
11 namespace gfx { | 11 namespace gfx { |
12 class Rect; | 12 class Rect; |
13 class Transform; | 13 class Transform; |
14 class Vector2dF; | 14 class Vector2dF; |
15 } // namespace gfx | 15 } // namespace gfx |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 | 18 |
19 class ClipTree; | 19 class ClipTree; |
20 struct DrawProperties; | 20 struct DrawProperties; |
21 class Layer; | 21 class Layer; |
22 class LayerImpl; | 22 class LayerImpl; |
| 23 class LayerTree; |
23 class LayerTreeHost; | 24 class LayerTreeHost; |
24 class RenderSurfaceImpl; | 25 class RenderSurfaceImpl; |
25 class EffectTree; | 26 class EffectTree; |
26 class TransformTree; | 27 class TransformTree; |
27 class PropertyTrees; | 28 class PropertyTrees; |
28 struct EffectNode; | 29 struct EffectNode; |
29 | 30 |
30 namespace draw_property_utils { | 31 namespace draw_property_utils { |
31 | 32 |
32 void CC_EXPORT PostConcatSurfaceContentsScale(const EffectNode* effect_node, | 33 void CC_EXPORT PostConcatSurfaceContentsScale(const EffectNode* effect_node, |
(...skipping 25 matching lines...) Expand all Loading... |
58 float device_scale_factor, | 59 float device_scale_factor, |
59 const gfx::Rect& viewport, | 60 const gfx::Rect& viewport, |
60 const gfx::Transform& device_transform, | 61 const gfx::Transform& device_transform, |
61 bool can_render_to_separate_surface, | 62 bool can_render_to_separate_surface, |
62 PropertyTrees* property_trees, | 63 PropertyTrees* property_trees, |
63 LayerImplList* visible_layer_list); | 64 LayerImplList* visible_layer_list); |
64 | 65 |
65 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees, | 66 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees, |
66 bool can_render_to_separate_surface); | 67 bool can_render_to_separate_surface); |
67 | 68 |
68 void CC_EXPORT FindLayersThatNeedUpdates(LayerTreeHost* layer_tree_host, | 69 void CC_EXPORT FindLayersThatNeedUpdates(LayerTree* layer_tree, |
69 const TransformTree& transform_tree, | 70 const TransformTree& transform_tree, |
70 const EffectTree& effect_tree, | 71 const EffectTree& effect_tree, |
71 LayerList* update_layer_list); | 72 LayerList* update_layer_list); |
72 | 73 |
73 void CC_EXPORT | 74 void CC_EXPORT |
74 ComputeVisibleRectsForTesting(PropertyTrees* property_trees, | 75 ComputeVisibleRectsForTesting(PropertyTrees* property_trees, |
75 bool can_render_to_separate_surface, | 76 bool can_render_to_separate_surface, |
76 LayerList* visible_layer_list); | 77 LayerList* visible_layer_list); |
77 | 78 |
78 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, | 79 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 138 |
138 void CC_EXPORT | 139 void CC_EXPORT |
139 UpdateElasticOverscroll(PropertyTrees* property_trees, | 140 UpdateElasticOverscroll(PropertyTrees* property_trees, |
140 const Layer* overscroll_elasticity_layer, | 141 const Layer* overscroll_elasticity_layer, |
141 const gfx::Vector2dF& elastic_overscroll); | 142 const gfx::Vector2dF& elastic_overscroll); |
142 | 143 |
143 } // namespace draw_property_utils | 144 } // namespace draw_property_utils |
144 } // namespace cc | 145 } // namespace cc |
145 | 146 |
146 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ | 147 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ |
OLD | NEW |