| Index: gpu/command_buffer/tests/gl_manager.cc
|
| diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
|
| index a8a7425b6d0e8fc6675e02fa0888add219eafc34..ebd821c345895c360342ffbfcbbca6466f8ee683 100644
|
| --- a/gpu/command_buffer/tests/gl_manager.cc
|
| +++ b/gpu/command_buffer/tests/gl_manager.cc
|
| @@ -323,7 +323,11 @@ const gpu::gles2::FeatureInfo::Workarounds& GLManager::workarounds() const {
|
| }
|
|
|
| void GLManager::PumpCommands() {
|
| - decoder_->MakeCurrent();
|
| + if (!decoder_->MakeCurrent()) {
|
| + command_buffer_->SetContextLostReason(decoder_->GetContextLostReason());
|
| + command_buffer_->SetParseError(::gpu::error::kLostContext);
|
| + return;
|
| + }
|
| gpu_scheduler_->PutChanged();
|
| ::gpu::CommandBuffer::State state = command_buffer_->GetLastState();
|
| if (!context_lost_allowed_) {
|
|
|