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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 687873004: Introduce Property Trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wip-awoloszyn2
Patch Set: . Created 6 years, 1 month 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/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 4e447b2dab9b83aaae4790ceb8368e26a92a2e28..d0ca8e2d0354be0956d7227c6ce8ae70ed6fb100 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -2418,9 +2418,11 @@ void LayerTreeHostCommon::CalculateDrawProperties(
DCHECK(inputs->root_layer->render_surface());
// Now compare with the new approach.
- OpacityTree opacity_tree;
- TransformTree transform_tree;
- ClipTree clip_tree;
+ // TODO(ajuma): Can we efficiently cache some of this rather than
+ // starting from scratch every frame?
+ OpacityTree opacity_tree(inputs->root_layer);
+ TransformTree transform_tree(inputs->root_layer);
+ ClipTree clip_tree(inputs->root_layer);
ComputeVisibleRectsUsingPropertyTrees(inputs->root_layer,
inputs->page_scale_application_layer,
inputs->page_scale_factor,

Powered by Google App Engine
This is Rietveld 408576698