| 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class Layer; | 21 class Layer; |
| 22 class LayerImpl; | 22 class LayerImpl; |
| 23 class LayerTreeHost; | 23 class LayerTreeHost; |
| 24 class RenderSurfaceImpl; | 24 class RenderSurfaceImpl; |
| 25 class EffectTree; | 25 class EffectTree; |
| 26 class TransformTree; | 26 class TransformTree; |
| 27 class PropertyTrees; | 27 class PropertyTrees; |
| 28 | 28 |
| 29 namespace draw_property_utils { | 29 namespace draw_property_utils { |
| 30 | 30 |
| 31 void CC_EXPORT ApplySublayerScale(const int effect_node_id, |
| 32 const EffectTree& effect_tree, |
| 33 gfx::Transform* transform); |
| 34 |
| 35 void CC_EXPORT RemoveSublayerScale(const int effect_node_id, |
| 36 const EffectTree& effect_tree, |
| 37 gfx::Transform* transform); |
| 31 // Computes combined clips for every node in |clip_tree|. This function requires | 38 // Computes combined clips for every node in |clip_tree|. This function requires |
| 32 // that |transform_tree| has been updated via |ComputeTransforms|. | 39 // that |transform_tree| has been updated via |ComputeTransforms|. |
| 33 void CC_EXPORT ComputeClips(ClipTree* clip_tree, | 40 void CC_EXPORT ComputeClips(ClipTree* clip_tree, |
| 34 const TransformTree& transform_tree, | 41 const TransformTree& transform_tree, |
| 35 bool non_root_surfaces_enabled); | 42 bool non_root_surfaces_enabled); |
| 36 | 43 |
| 37 // Computes combined (screen space) transforms for every node in the transform | 44 // Computes combined (screen space) transforms for every node in the transform |
| 38 // tree. This must be done prior to calling |ComputeClips|. | 45 // tree. This must be done prior to calling |ComputeClips|. |
| 39 void CC_EXPORT ComputeTransforms(TransformTree* transform_tree); | 46 void CC_EXPORT ComputeTransforms(TransformTree* transform_tree); |
| 40 | 47 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 137 |
| 131 void CC_EXPORT | 138 void CC_EXPORT |
| 132 UpdateElasticOverscroll(PropertyTrees* property_trees, | 139 UpdateElasticOverscroll(PropertyTrees* property_trees, |
| 133 const Layer* overscroll_elasticity_layer, | 140 const Layer* overscroll_elasticity_layer, |
| 134 const gfx::Vector2dF& elastic_overscroll); | 141 const gfx::Vector2dF& elastic_overscroll); |
| 135 | 142 |
| 136 } // namespace draw_property_utils | 143 } // namespace draw_property_utils |
| 137 } // namespace cc | 144 } // namespace cc |
| 138 | 145 |
| 139 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ | 146 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ |
| OLD | NEW |