diff options
author | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-23 20:53:58 +0000 |
---|---|---|
committer | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-23 20:53:58 +0000 |
commit | 8b34cf43058406fae67af4f335d20856f5619aa0 (patch) | |
tree | d9699d662ed9a2456832f96416e9b19b93990e86 /content | |
parent | b4bb9ca0f57a0375e80cd662f0233298ed987a72 (diff) | |
download | chromium_src-8b34cf43058406fae67af4f335d20856f5619aa0.zip chromium_src-8b34cf43058406fae67af4f335d20856f5619aa0.tar.gz chromium_src-8b34cf43058406fae67af4f335d20856f5619aa0.tar.bz2 |
Lose all contexts in context lost in OnMessageReceived.
If we don't lose all the contexts here, we'll never get to a place that will lose all of them.
BUG=
TEST=lost device on khronos webgl demos
Review URL: http://codereview.chromium.org/7969026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/common/gpu/gpu_command_buffer_stub.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc index d38d9c9..57a076e 100644 --- a/content/common/gpu/gpu_command_buffer_stub.cc +++ b/content/common/gpu/gpu_command_buffer_stub.cc @@ -79,6 +79,8 @@ bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) { LOG(ERROR) << "Context lost because MakeCurrent failed."; command_buffer_->SetContextLostReason(decoder_->GetContextLostReason()); command_buffer_->SetParseError(gpu::error::kLostContext); + if (gfx::GLContext::LosesAllContextsOnContextLost()) + channel_->LoseAllContexts(); return false; } } |