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 9222a69b2f4188cc5972081678370b6cd405b526..9861a651d344697cc89c3beac56b582c7dcc28da 100644 |
--- a/content/common/gpu/gpu_command_buffer_stub.cc |
+++ b/content/common/gpu/gpu_command_buffer_stub.cc |
@@ -142,6 +142,14 @@ bool GpuCommandBufferStub::HasMoreWork() { |
return scheduler_.get() && scheduler_->HasMoreWork(); |
} |
+bool GpuCommandBufferStub::HasUnprocessedCommands() { |
+ if (command_buffer_.get()) { |
+ gpu::CommandBuffer::State state = command_buffer_->GetLastState(); |
+ return state.put_offset != state.get_offset; |
+ } |
+ return false; |
+} |
+ |
void GpuCommandBufferStub::OnEcho(const IPC::Message& message) { |
TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnEcho"); |
Send(new IPC::Message(message)); |