| Index: content/common/gpu/gpu_command_buffer_stub.cc
|
| diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
|
| index 582802d55b28af7429fafeb49974d41a13cbed90..a1c12172ee88c1e474950ea6e06b9c5069d001f7 100644
|
| --- a/content/common/gpu/gpu_command_buffer_stub.cc
|
| +++ b/content/common/gpu/gpu_command_buffer_stub.cc
|
| @@ -358,23 +358,12 @@ 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)
|
| - context->MakeCurrent(surface_.get());
|
| - surface_ = NULL;
|
| - if (context)
|
| - context->ReleaseCurrent(NULL);
|
| }
|
|
|
| void GpuCommandBufferStub::OnInitializeFailed(IPC::Message* reply_message) {
|
|
|