Index: gpu/command_buffer/client/cmd_buffer_helper.cc |
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.cc b/gpu/command_buffer/client/cmd_buffer_helper.cc |
index b6306d7fd935d7950404ba0f63ad636de413b2dd..2750903b716ab1bb648dcad7e7787ebecd583cfd 100644 |
--- a/gpu/command_buffer/client/cmd_buffer_helper.cc |
+++ b/gpu/command_buffer/client/cmd_buffer_helper.cc |
@@ -198,7 +198,8 @@ bool CommandBufferHelper::Finish() { |
if (put_ == get_offset()) { |
return true; |
} |
- DCHECK(HaveRingBuffer()); |
+ DCHECK(HaveRingBuffer() || |
+ error::IsError(command_buffer_->GetLastState().error)); |
Flush(); |
if (!WaitForGetOffsetInRange(put_, put_)) |
return false; |