Index: cc/trees/layer_tree_host_impl.cc |
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc |
index 4ccc5fe8b5e1304a6dd056da3fce7ee0de1daf67..ff5de3aec9dc68db4336c52ac5a410eef7ff721c 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -1183,12 +1183,6 @@ void LayerTreeHostImpl::ResetTreesForTesting() { |
recycle_tree_ = nullptr; |
} |
-void LayerTreeHostImpl::ResetRecycleTreeForTesting() { |
- if (recycle_tree_) |
- recycle_tree_->DetachLayerTree(); |
- recycle_tree_ = nullptr; |
-} |
- |
void LayerTreeHostImpl::EnforceManagedMemoryPolicy( |
const ManagedMemoryPolicy& policy) { |
@@ -1286,7 +1280,7 @@ void LayerTreeHostImpl::GetPictureLayerImplPairs( |
if (!layer->HasValidTilePriorities()) |
continue; |
- PictureLayerImpl* twin_layer = layer->GetTwinLayer(); |
+ PictureLayerImpl* twin_layer = layer->GetPendingOrActiveTwinLayer(); |
// Ignore the twin layer when tile priorities are invalid. |
// TODO(vmpstr): Iterators should handle this instead. crbug.com/381704 |