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

Unified Diff: content/renderer/gpu/mailbox_output_surface.cc

Issue 1336733002: Re-land: cc: Implement shared worker contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add in_process context support Created 5 years, 3 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: 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() {

Powered by Google App Engine
This is Rietveld 408576698