| Index: chrome/renderer/ggl/ggl.cc
|
| diff --git a/chrome/renderer/ggl/ggl.cc b/chrome/renderer/ggl/ggl.cc
|
| index c95bbb583f82d722124d505414de5e455f20bb02..8dea5092fdc86a1c3b0d30d6c0accd4c82744b61 100644
|
| --- a/chrome/renderer/ggl/ggl.cc
|
| +++ b/chrome/renderer/ggl/ggl.cc
|
| @@ -412,7 +412,12 @@ void Context::SetError(Error error) {
|
|
|
| bool Context::IsCommandBufferContextLost() {
|
| gpu::CommandBuffer::State state = command_buffer_->GetLastState();
|
| - return state.error == gpu::error::kLostContext;
|
| + if (state.error == gpu::error::kLostContext) {
|
| + // Tell the host that the connection was lost right away.
|
| + channel_->SetStateLost();
|
| + return true;
|
| + }
|
| + return false;
|
| }
|
|
|
| // TODO(gman): Remove This
|
|
|