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 #include "cc/trees/draw_property_utils.h" | 5 #include "cc/trees/draw_property_utils.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 device_transform, property_trees); | 1112 device_transform, property_trees); |
1113 ComputeVisibleRects(root_layer, property_trees, | 1113 ComputeVisibleRects(root_layer, property_trees, |
1114 can_render_to_separate_surface, visible_layer_list); | 1114 can_render_to_separate_surface, visible_layer_list); |
1115 } | 1115 } |
1116 | 1116 |
1117 void VerifyClipTreeCalculations(const LayerImplList& layer_list, | 1117 void VerifyClipTreeCalculations(const LayerImplList& layer_list, |
1118 PropertyTrees* property_trees) { | 1118 PropertyTrees* property_trees) { |
1119 if (property_trees->non_root_surfaces_enabled) { | 1119 if (property_trees->non_root_surfaces_enabled) { |
1120 ComputeClipsWithEffectTree(property_trees); | 1120 ComputeClipsWithEffectTree(property_trees); |
1121 } | 1121 } |
1122 for (auto layer : layer_list) | 1122 for (auto* layer : layer_list) |
1123 ComputeLayerClipRect(property_trees, layer); | 1123 ComputeLayerClipRect(property_trees, layer); |
1124 } | 1124 } |
1125 | 1125 |
1126 void VerifyTransformTreeCalculations(const LayerImplList& layer_list, | 1126 void VerifyTransformTreeCalculations(const LayerImplList& layer_list, |
1127 PropertyTrees* property_trees) { | 1127 PropertyTrees* property_trees) { |
1128 for (auto layer : layer_list) | 1128 for (auto* layer : layer_list) |
1129 VerifyDrawTransformsMatch(layer, property_trees); | 1129 VerifyDrawTransformsMatch(layer, property_trees); |
1130 } | 1130 } |
1131 | 1131 |
1132 void ComputeVisibleRects(LayerImpl* root_layer, | 1132 void ComputeVisibleRects(LayerImpl* root_layer, |
1133 PropertyTrees* property_trees, | 1133 PropertyTrees* property_trees, |
1134 bool can_render_to_separate_surface, | 1134 bool can_render_to_separate_surface, |
1135 LayerImplList* visible_layer_list) { | 1135 LayerImplList* visible_layer_list) { |
1136 for (auto* layer : *root_layer->layer_tree_impl()) { | 1136 for (auto* layer : *root_layer->layer_tree_impl()) { |
1137 UpdateRenderSurfaceForLayer(&property_trees->effect_tree, | 1137 UpdateRenderSurfaceForLayer(&property_trees->effect_tree, |
1138 can_render_to_separate_surface, layer); | 1138 can_render_to_separate_surface, layer); |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1536 void UpdateElasticOverscroll(PropertyTrees* property_trees, | 1536 void UpdateElasticOverscroll(PropertyTrees* property_trees, |
1537 const Layer* overscroll_elasticity_layer, | 1537 const Layer* overscroll_elasticity_layer, |
1538 const gfx::Vector2dF& elastic_overscroll) { | 1538 const gfx::Vector2dF& elastic_overscroll) { |
1539 UpdateElasticOverscrollInternal(property_trees, overscroll_elasticity_layer, | 1539 UpdateElasticOverscrollInternal(property_trees, overscroll_elasticity_layer, |
1540 elastic_overscroll); | 1540 elastic_overscroll); |
1541 } | 1541 } |
1542 | 1542 |
1543 } // namespace draw_property_utils | 1543 } // namespace draw_property_utils |
1544 | 1544 |
1545 } // namespace cc | 1545 } // namespace cc |
OLD | NEW |