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

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

Issue 9583021: Only add rescheduled message when there are commands to reschedule. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « no previous file | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index daa0910e826073f8a9cab3e0d3f0a510cef3d282..b79aefda1e18b4fb1779af70921c04fa84e437eb 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -260,7 +260,7 @@ void GpuChannel::HandleMessage() {
// buffer that became unscheduled.
GpuCommandBufferStub* stub = stubs_.Lookup(message->routing_id());
if (stub) {
- if (!stub->IsScheduled() || stub->HasMoreWork()) {
+ if (stub->HasUnprocessedCommands() || stub->HasMoreWork()) {
deferred_messages_.push_front(new GpuCommandBufferMsg_Rescheduled(
stub->route_id()));
}
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698