| 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,
|
|
|