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

Unified Diff: cc/layers/picture_layer_unittest.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
Index: cc/layers/picture_layer_unittest.cc
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc
index a5c7ede269ee12eb914f74ea00d68e39b72ec6f3..a1ff429918c22eb5791fff6b797a0dc04772f971 100644
--- a/cc/layers/picture_layer_unittest.cc
+++ b/cc/layers/picture_layer_unittest.cc
@@ -289,6 +289,7 @@ TEST(PictureLayerTest, InvalidateRasterAfterUpdate) {
host_impl.CreatePendingTree();
host_impl.pending_tree()->SetRootLayer(
FakePictureLayerImpl::Create(host_impl.pending_tree(), 1));
+ host_impl.pending_tree()->BuildLayerListForTesting();
FakePictureLayerImpl* layer_impl = static_cast<FakePictureLayerImpl*>(
host_impl.pending_tree()->root_layer());
layer->PushPropertiesTo(layer_impl);
@@ -331,6 +332,7 @@ TEST(PictureLayerTest, InvalidateRasterWithoutUpdate) {
host_impl.CreatePendingTree();
host_impl.pending_tree()->SetRootLayer(
FakePictureLayerImpl::Create(host_impl.pending_tree(), 1));
+ host_impl.pending_tree()->BuildLayerListForTesting();
FakePictureLayerImpl* layer_impl = static_cast<FakePictureLayerImpl*>(
host_impl.pending_tree()->root_layer());
layer->PushPropertiesTo(layer_impl);

Powered by Google App Engine
This is Rietveld 408576698