Index: cc/trees/layer_tree_impl.cc |
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc |
index 392e80b658b041d71e09d53b63a164c90917945e..ee936022a04c17f507b8968a84c7ca39dbfcd65b 100644 |
--- a/cc/trees/layer_tree_impl.cc |
+++ b/cc/trees/layer_tree_impl.cc |
@@ -718,6 +718,13 @@ LayerImpl* LayerTreeImpl::FindPendingTreeLayerById(int id) { |
return tree->LayerById(id); |
} |
+LayerImpl* LayerTreeImpl::FindRecycleTreeLayerById(int id) { |
+ LayerTreeImpl* tree = layer_tree_host_impl_->recycle_tree(); |
+ if (!tree) |
+ return NULL; |
+ return tree->LayerById(id); |
+} |
+ |
int LayerTreeImpl::MaxTextureSize() const { |
return layer_tree_host_impl_->GetRendererCapabilities().max_texture_size; |
} |