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

Unified Diff: gpu/ipc/service/gpu_channel.cc

Issue 2012303002: [Merge to 2743] Revert "[Reland 2] Pepper takes ownership of a mailbox before passing it to the tex… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 7 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 | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel.cc
diff --git a/gpu/ipc/service/gpu_channel.cc b/gpu/ipc/service/gpu_channel.cc
index 9ab4f860b9096e9773b68f193e4ac60abe39a199..1a777631b29cad1d6c14789fbc380d7ac8abee3e 100644
--- a/gpu/ipc/service/gpu_channel.cc
+++ b/gpu/ipc/service/gpu_channel.cc
@@ -792,10 +792,8 @@ void GpuChannel::HandleMessage(
HandleMessageHelper(msg);
// If we get descheduled or yield while processing a message.
- if ((stub && stub->HasUnprocessedCommands()) ||
- !message_queue->IsScheduled()) {
- DCHECK((uint32_t)GpuCommandBufferMsg_AsyncFlush::ID == msg.type() ||
- (uint32_t)GpuCommandBufferMsg_WaitSyncToken::ID == msg.type());
+ if (stub && stub->HasUnprocessedCommands()) {
+ DCHECK_EQ((uint32_t)GpuCommandBufferMsg_AsyncFlush::ID, msg.type());
message_queue->PauseMessageProcessing();
} else {
message_queue->FinishMessageProcessing();
« no previous file with comments | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698