Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10011)

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 9726014: Make sure to add rescheduled message when we have unprocessed commands and there's no error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698