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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 1062403002: cc: Plumbing for storing property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix perf test compile failure 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
« no previous file with comments | « cc/trees/property_tree_builder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree_builder.cc
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc
index 9009bc9a3a63c926f569041be7dbc7d09a5ee6b1..67152d0e3330ecf26047a46b100f24cabfd92c93 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -318,13 +318,11 @@ void PropertyTreeBuilder::BuildPropertyTrees(
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) {
DataForRecursion data_for_recursion;
- data_for_recursion.transform_tree = transform_tree;
- data_for_recursion.clip_tree = clip_tree;
- data_for_recursion.opacity_tree = opacity_tree;
+ data_for_recursion.transform_tree = &property_trees->transform_tree;
+ data_for_recursion.clip_tree = &property_trees->clip_tree;
+ data_for_recursion.opacity_tree = &property_trees->opacity_tree;
data_for_recursion.transform_tree_parent = nullptr;
data_for_recursion.transform_fixed_parent = nullptr;
data_for_recursion.render_target = root_layer;
@@ -340,7 +338,8 @@ void PropertyTreeBuilder::BuildPropertyTrees(
ClipNode root_clip;
root_clip.data.clip = viewport;
root_clip.data.transform_id = 0;
- data_for_recursion.clip_tree_parent = clip_tree->Insert(root_clip, 0);
+ data_for_recursion.clip_tree_parent =
+ data_for_recursion.clip_tree->Insert(root_clip, 0);
BuildPropertyTreesInternal(root_layer, data_for_recursion);
}
« no previous file with comments | « cc/trees/property_tree_builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698