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

Unified Diff: cc/surfaces/direct_compositor_frame_sink_unittest.cc

Issue 2404993002: cc: Stop calling DetachFromClient if bind failed. (Closed)
Patch Set: detachinternal: . Created 4 years, 2 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/surfaces/direct_compositor_frame_sink_unittest.cc
diff --git a/cc/surfaces/direct_compositor_frame_sink_unittest.cc b/cc/surfaces/direct_compositor_frame_sink_unittest.cc
index 4291539c1ecafb91c2dca9b9e986b16372196bbf..b15b5212402997b1d51c0e4cb65ebbdde54cd36d 100644
--- a/cc/surfaces/direct_compositor_frame_sink_unittest.cc
+++ b/cc/surfaces/direct_compositor_frame_sink_unittest.cc
@@ -67,7 +67,9 @@ class DirectCompositorFrameSinkTest : public testing::Test {
compositor_frame_sink_client_.did_lose_compositor_frame_sink_called());
}
- ~DirectCompositorFrameSinkTest() override {}
+ ~DirectCompositorFrameSinkTest() override {
+ compositor_frame_sink_->DetachFromClient();
+ }
void SwapBuffersWithDamage(const gfx::Rect& damage_rect) {
std::unique_ptr<RenderPass> render_pass(RenderPass::Create());

Powered by Google App Engine
This is Rietveld 408576698