Index: content/renderer/gpu/mailbox_output_surface.cc |
diff --git a/content/renderer/gpu/mailbox_output_surface.cc b/content/renderer/gpu/mailbox_output_surface.cc |
index 4a598d4c60647d3e24225d10c56895c28fd86912..1c845feb882bbb9f921a6d724307f8d8c687d73a 100644 |
--- a/content/renderer/gpu/mailbox_output_surface.cc |
+++ b/content/renderer/gpu/mailbox_output_surface.cc |
@@ -44,7 +44,9 @@ MailboxOutputSurface::MailboxOutputSurface( |
capabilities_.uses_default_gl_framebuffer = false; |
} |
-MailboxOutputSurface::~MailboxOutputSurface() { |
+MailboxOutputSurface::~MailboxOutputSurface() {} |
+ |
+void MailboxOutputSurface::DetachFromClient() { |
DiscardBackbuffer(); |
while (!pending_textures_.empty()) { |
if (pending_textures_.front().texture_id) { |
@@ -53,6 +55,7 @@ MailboxOutputSurface::~MailboxOutputSurface() { |
} |
pending_textures_.pop_front(); |
} |
+ cc::OutputSurface::DetachFromClient(); |
} |
void MailboxOutputSurface::EnsureBackbuffer() { |