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

Unified Diff: cc/layers/layer_impl_test_properties.cc

Issue 2100353002: cc: DCHECK that the OutputSurface was released in ~LayerTreeHostImpl(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: released-outputsurface: rebase Created 4 years, 6 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 | « no previous file | cc/layers/picture_layer_unittest.cc » ('j') | cc/trees/layer_tree_host_impl_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl_test_properties.cc
diff --git a/cc/layers/layer_impl_test_properties.cc b/cc/layers/layer_impl_test_properties.cc
index e3e0fd60f61ebae8847114e27abb76284a94ba5b..0dc27771c8f0535f4ac64f80501467378c773be5 100644
--- a/cc/layers/layer_impl_test_properties.cc
+++ b/cc/layers/layer_impl_test_properties.cc
@@ -33,6 +33,7 @@ void LayerImplTestProperties::AddChild(std::unique_ptr<LayerImpl> child) {
child->test_properties()->parent = owning_layer;
children.push_back(child.get());
owning_layer->layer_tree_impl()->AddLayer(std::move(child));
+ owning_layer->layer_tree_impl()->BuildLayerListForTesting();
}
std::unique_ptr<LayerImpl> LayerImplTestProperties::RemoveChild(
@@ -42,7 +43,9 @@ std::unique_ptr<LayerImpl> LayerImplTestProperties::RemoveChild(
children.erase(it);
owning_layer->layer_tree_impl()->property_trees()->RemoveIdFromIdToIndexMaps(
child->id());
- return owning_layer->layer_tree_impl()->RemoveLayer(child->id());
+ auto layer = owning_layer->layer_tree_impl()->RemoveLayer(child->id());
+ owning_layer->layer_tree_impl()->BuildLayerListForTesting();
+ return layer;
}
void LayerImplTestProperties::SetMaskLayer(std::unique_ptr<LayerImpl> mask) {
« no previous file with comments | « no previous file | cc/layers/picture_layer_unittest.cc » ('j') | cc/trees/layer_tree_host_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698