Chromium Code Reviews| Index: content/common/gpu/gpu_channel.cc |
| diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc |
| index 1c8e4f95f3cb853e72a7ab1829288f19ed86b002..b8d62f7c1c360ba8c13d0a8bcbcf9e57a55b1586 100644 |
| --- a/content/common/gpu/gpu_channel.cc |
| +++ b/content/common/gpu/gpu_channel.cc |
| @@ -404,6 +404,10 @@ GpuChannel::~GpuChannel() { |
| STLDeleteElements(&deferred_messages_); |
| if (preempting_flag_.get()) |
| preempting_flag_->Reset(); |
| + |
| + bool have_context = gfx::GLContext::GetCurrent()->IsCurrent(NULL); |
| + if (image_manager_) |
| + image_manager_->Destroy(have_context); |
|
reveman
2014/06/03 15:57:54
I don't think this will work. What if the context
sohanjg
2014/06/04 06:39:02
I have tried checking the context from GpuCommandB
|
| } |
| void GpuChannel::Init(base::MessageLoopProxy* io_message_loop, |