| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const gfx::Rect& viewport, | 58 const gfx::Rect& viewport, |
| 59 const gfx::Transform& device_transform, | 59 const gfx::Transform& device_transform, |
| 60 bool can_render_to_separate_surface, | 60 bool can_render_to_separate_surface, |
| 61 PropertyTrees* property_trees, | 61 PropertyTrees* property_trees, |
| 62 LayerImplList* visible_layer_list); | 62 LayerImplList* visible_layer_list); |
| 63 | 63 |
| 64 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees, | 64 void CC_EXPORT UpdatePropertyTrees(PropertyTrees* property_trees, |
| 65 bool can_render_to_separate_surface); | 65 bool can_render_to_separate_surface); |
| 66 | 66 |
| 67 void CC_EXPORT FindLayersThatNeedUpdates(LayerTree* layer_tree, | 67 void CC_EXPORT FindLayersThatNeedUpdates(LayerTree* layer_tree, |
| 68 const TransformTree& transform_tree, | 68 const PropertyTrees* property_trees, |
| 69 const EffectTree& effect_tree, | |
| 70 LayerList* update_layer_list); | 69 LayerList* update_layer_list); |
| 71 | 70 |
| 72 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, | 71 void CC_EXPORT ComputeVisibleRects(LayerImpl* root_layer, |
| 73 PropertyTrees* property_trees, | 72 PropertyTrees* property_trees, |
| 74 bool can_render_to_separate_surface, | 73 bool can_render_to_separate_surface, |
| 75 LayerImplList* visible_layer_list); | 74 LayerImplList* visible_layer_list); |
| 76 | 75 |
| 77 gfx::Rect CC_EXPORT | 76 gfx::Rect CC_EXPORT |
| 78 ComputeLayerVisibleRectDynamic(const PropertyTrees* property_trees, | 77 ComputeLayerVisibleRectDynamic(const PropertyTrees* property_trees, |
| 79 const LayerImpl* layer); | 78 const LayerImpl* layer); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 90 void CC_EXPORT ComputeSurfaceDrawProperties(const PropertyTrees* property_trees, | 89 void CC_EXPORT ComputeSurfaceDrawProperties(const PropertyTrees* property_trees, |
| 91 RenderSurfaceImpl* render_surface); | 90 RenderSurfaceImpl* render_surface); |
| 92 | 91 |
| 93 bool CC_EXPORT LayerShouldBeSkipped(LayerImpl* layer, | 92 bool CC_EXPORT LayerShouldBeSkipped(LayerImpl* layer, |
| 94 bool layer_is_drawn, | 93 bool layer_is_drawn, |
| 95 const TransformTree& transform_tree, | 94 const TransformTree& transform_tree, |
| 96 const EffectTree& effect_tree); | 95 const EffectTree& effect_tree); |
| 97 | 96 |
| 98 bool CC_EXPORT LayerNeedsUpdate(Layer* layer, | 97 bool CC_EXPORT LayerNeedsUpdate(Layer* layer, |
| 99 bool layer_is_drawn, | 98 bool layer_is_drawn, |
| 100 const TransformTree& tree); | 99 const PropertyTrees* property_trees); |
| 101 | 100 |
| 102 bool CC_EXPORT LayerNeedsUpdate(LayerImpl* layer, | 101 bool CC_EXPORT LayerNeedsUpdate(LayerImpl* layer, |
| 103 bool layer_is_drawn, | 102 bool layer_is_drawn, |
| 104 const TransformTree& tree); | 103 const PropertyTrees* property_trees); |
| 105 | 104 |
| 106 void CC_EXPORT VerifyClipTreeCalculations(const LayerImplList& layer_list, | 105 void CC_EXPORT VerifyClipTreeCalculations(const LayerImplList& layer_list, |
| 107 PropertyTrees* property_trees); | 106 PropertyTrees* property_trees); |
| 108 | 107 |
| 109 void CC_EXPORT VerifyTransformTreeCalculations(const LayerImplList& layer_list, | |
| 110 PropertyTrees* property_trees); | |
| 111 | |
| 112 gfx::Transform CC_EXPORT DrawTransform(const LayerImpl* layer, | 108 gfx::Transform CC_EXPORT DrawTransform(const LayerImpl* layer, |
| 113 const TransformTree& transform_tree, | 109 const TransformTree& transform_tree, |
| 114 const EffectTree& effect_tree); | 110 const EffectTree& effect_tree); |
| 115 | 111 |
| 116 gfx::Transform CC_EXPORT ScreenSpaceTransform(const Layer* layer, | 112 gfx::Transform CC_EXPORT ScreenSpaceTransform(const Layer* layer, |
| 117 const TransformTree& tree); | 113 const TransformTree& tree); |
| 118 | 114 |
| 119 gfx::Transform CC_EXPORT ScreenSpaceTransform(const LayerImpl* layer, | 115 gfx::Transform CC_EXPORT ScreenSpaceTransform(const LayerImpl* layer, |
| 120 const TransformTree& tree); | 116 const TransformTree& tree); |
| 121 | 117 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 138 | 134 |
| 139 void CC_EXPORT | 135 void CC_EXPORT |
| 140 UpdateElasticOverscroll(PropertyTrees* property_trees, | 136 UpdateElasticOverscroll(PropertyTrees* property_trees, |
| 141 const Layer* overscroll_elasticity_layer, | 137 const Layer* overscroll_elasticity_layer, |
| 142 const gfx::Vector2dF& elastic_overscroll); | 138 const gfx::Vector2dF& elastic_overscroll); |
| 143 | 139 |
| 144 } // namespace draw_property_utils | 140 } // namespace draw_property_utils |
| 145 } // namespace cc | 141 } // namespace cc |
| 146 | 142 |
| 147 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ | 143 #endif // CC_TREES_DRAW_PROPERTY_UTILS_H_ |
| OLD | NEW |