Index: content/common/gpu/gpu_command_buffer_stub.cc |
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc |
index 96ca0ea68ab85ff030ddaac2a1a4a1494614602e..114f7b9f33fa5cac3333de030d4f9a7cefd0fe81 100644 |
--- a/content/common/gpu/gpu_command_buffer_stub.cc |
+++ b/content/common/gpu/gpu_command_buffer_stub.cc |
@@ -160,7 +160,8 @@ void GpuCommandBufferStub::PollWork() { |
bool GpuCommandBufferStub::HasUnprocessedCommands() { |
if (command_buffer_.get()) { |
gpu::CommandBuffer::State state = command_buffer_->GetLastState(); |
- return state.put_offset != state.get_offset; |
+ return state.put_offset != state.get_offset && |
+ !gpu::error::IsError(state.error); |
apatrick_chromium
2012/03/20 17:30:13
nit: indentation
|
} |
return false; |
} |