| 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 Layer; | 19 class Layer; |
| 20 class LayerImpl; | 20 class LayerImpl; |
| 21 class LayerTree; | 21 class LayerTreeHost; |
| 22 class RenderSurfaceImpl; | 22 class RenderSurfaceImpl; |
| 23 class EffectTree; | 23 class EffectTree; |
| 24 class TransformTree; | 24 class TransformTree; |
| 25 class PropertyTrees; | 25 class PropertyTrees; |
| 26 struct EffectNode; | 26 struct EffectNode; |
| 27 | 27 |
| 28 namespace draw_property_utils { | 28 namespace draw_property_utils { |
| 29 | 29 |
| 30 void CC_EXPORT PostConcatSurfaceContentsScale(const EffectNode* effect_node, | 30 void CC_EXPORT PostConcatSurfaceContentsScale(const EffectNode* effect_node, |
| 31 gfx::Transform* transform); | 31 gfx::Transform* transform); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 55 float device_scale_factor, | 55 float device_scale_factor, |
| 56 const gfx::Rect& viewport, | 56 const gfx::Rect& viewport, |
| 57 const gfx::Transform& device_transform, | 57 const gfx::Transform& device_transform, |
| 58 bool can_render_to_separate_surface, | 58 bool can_render_to_separate_surface, |
| 59 PropertyTrees* property_trees, | 59 PropertyTrees* property_trees, |
| 60 LayerImplList* visible_layer_list); | 60 LayerImplList* visible_layer_list); |
| 61 | 61 |
| 62 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees, | 62 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees, |
| 63 bool can_render_to_separate_surface); | 63 bool can_render_to_separate_surface); |
| 64 | 64 |
| 65 void CC_EXPORT FindLayersThatNeedUpdates(LayerTree* layer_tree, | 65 void CC_EXPORT FindLayersThatNeedUpdates(LayerTreeHost* layer_tree_host, |
| 66 const PropertyTrees* property_trees, | 66 const PropertyTrees* property_trees, |
| 67 LayerList* update_layer_list); | 67 LayerList* update_layer_list); |
| 68 | 68 |
| 69 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, | 69 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, |
| 70 PropertyTrees* property_trees, | 70 PropertyTrees* property_trees, |
| 71 bool can_render_to_separate_surface, | 71 bool can_render_to_separate_surface, |
| 72 LayerImplList* visible_layer_list); | 72 LayerImplList* visible_layer_list); |
| 73 | 73 |
| 74 gfx::Rect CC_EXPORT | 74 gfx::Rect CC_EXPORT |
| 75 ComputeLayerVisibleRectDynamic(const PropertyTrees* property_trees, | 75 ComputeLayerVisibleRectDynamic(const PropertyTrees* property_trees, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 void CC_EXPORT | 132 void CC_EXPORT |
| 133 UpdateElasticOverscroll(PropertyTrees* property_trees, | 133 UpdateElasticOverscroll(PropertyTrees* property_trees, |
| 134 const Layer* overscroll_elasticity_layer, | 134 const Layer* overscroll_elasticity_layer, |
| 135 const gfx::Vector2dF& elastic_overscroll); | 135 const gfx::Vector2dF& elastic_overscroll); |
| 136 | 136 |
| 137 } // namespace draw_property_utils | 137 } // namespace draw_property_utils |
| 138 } // namespace cc | 138 } // namespace cc |
| 139 | 139 |
| 140 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ | 140 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ |
| OLD | NEW |