summaryrefslogtreecommitdiff
path: root/content/common/gpu/gpu_command_buffer_stub.cc
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2013-06-11 16:24:11 +0100
committerTorne (Richard Coles) <torne@google.com>2013-06-11 16:24:11 +0100
commit5e3f23d412006dc4db4e659864679f29341e113f (patch)
treefb52e3eb179269ea21e0b510509ecf9e8d7b3111 /content/common/gpu/gpu_command_buffer_stub.cc
parenta486f6ca78e90d14f48125ef943e045218aac565 (diff)
downloadchromium_org-5e3f23d412006dc4db4e659864679f29341e113f.tar.gz
Merge from Chromium at DEPS revision r205548
This commit was generated by merge_to_master.py. Change-Id: I6d3c83f1b6c91aecc6bd4bf93562314356dd44b9
Diffstat (limited to 'content/common/gpu/gpu_command_buffer_stub.cc')
-rw-r--r--content/common/gpu/gpu_command_buffer_stub.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index e0600c734b..59591eb6e0 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -359,23 +359,15 @@ void GpuCommandBufferStub::Destroy() {
destruction_observers_,
OnWillDestroyStub());
- scoped_refptr<gfx::GLContext> context;
if (decoder_) {
- context = decoder_->GetGLContext();
decoder_->Destroy(have_context);
decoder_.reset();
}
command_buffer_.reset();
- // Make sure that context_ is current while we destroy surface_, because
- // surface_ may have GL resources that it needs to destroy, and will need
- // context_ to be current in order to not leak these resources.
- if (context.get())
- context->MakeCurrent(surface_.get());
+ // Remove this after crbug.com/248395 is sorted out.
surface_ = NULL;
- if (context.get())
- context->ReleaseCurrent(NULL);
}
void GpuCommandBufferStub::OnInitializeFailed(IPC::Message* reply_message) {