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

Unified Diff: cc/test/fake_layer_tree_host_impl.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: . 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/test/fake_layer_tree_host_impl.cc
diff --git a/cc/test/fake_layer_tree_host_impl.cc b/cc/test/fake_layer_tree_host_impl.cc
index a0b9f48647e9f531105a5e362565c9c91a06beeb..d58fee19b93af020b52c904dcfc8a1d6eadd5be7 100644
--- a/cc/test/fake_layer_tree_host_impl.cc
+++ b/cc/test/fake_layer_tree_host_impl.cc
@@ -62,7 +62,9 @@ FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(
CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, time_ticks));
}
-FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {}
+FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {
+ ReleaseOutputSurface();
+}
void FakeLayerTreeHostImpl::CreatePendingTree() {
LayerTreeHostImpl::CreatePendingTree();

Powered by Google App Engine
This is Rietveld 408576698