Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2411)

Unified Diff: cc/trees/draw_property_utils.cc

Issue 1062403002: cc: Plumbing for storing property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/trees/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index 503270ae91a21ccf3b9f6244fc753cb03b70fabf..322d57e7a9a52d09e1ca2503a65c641bd34679be 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -306,21 +306,20 @@ void ComputeVisibleRectsUsingPropertyTrees(
float device_scale_factor,
const gfx::Rect& viewport,
const gfx::Transform& device_transform,
- TransformTree* transform_tree,
- ClipTree* clip_tree,
- OpacityTree* opacity_tree) {
+ PropertyTrees* property_trees) {
PropertyTreeBuilder::BuildPropertyTrees(
root_layer, page_scale_layer, page_scale_factor, device_scale_factor,
- viewport, device_transform, transform_tree, clip_tree, opacity_tree);
- ComputeTransforms(transform_tree);
- ComputeClips(clip_tree, *transform_tree);
+ viewport, device_transform, property_trees);
+ ComputeTransforms(&property_trees->transform_tree);
+ ComputeClips(&property_trees->clip_tree, property_trees->transform_tree);
std::vector<Layer*> layers_to_update;
const bool subtree_is_visible_from_ancestor = true;
- FindLayersThatNeedVisibleRects(root_layer, *transform_tree,
+ FindLayersThatNeedVisibleRects(root_layer, property_trees->transform_tree,
subtree_is_visible_from_ancestor,
&layers_to_update);
- CalculateVisibleRects(layers_to_update, *clip_tree, *transform_tree);
+ CalculateVisibleRects(layers_to_update, property_trees->clip_tree,
+ property_trees->transform_tree);
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698