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

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

Issue 1965253002: [Reland 2] Pepper takes ownership of a mailbox before passing it to the texture layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix preemption bug. 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 c4014d1f6271facca4a037d94667a45f07aa522a..a33c24bb8794119c97523d9ebb9d9f91108e20ba 100644
--- a/gpu/ipc/service/gpu_channel.cc
+++ b/gpu/ipc/service/gpu_channel.cc
@@ -792,8 +792,10 @@ void GpuChannel::HandleMessage(
HandleMessageHelper(msg);
// If we get descheduled or yield while processing a message.
- if (stub && stub->HasUnprocessedCommands()) {
- DCHECK_EQ((uint32_t)GpuCommandBufferMsg_AsyncFlush::ID, msg.type());
+ if ((stub && stub->HasUnprocesedCommands()) ||
piman 2016/05/11 02:35:25 HasUnprocesedCommands->HasUnprocessedCommands (2 s
erikchen 2016/05/11 17:00:11 I tested this on both ChromeOS, to make sure the f
+ !message_queue->IsScheduled()) {
+ DCHECK((uint32_t)GpuCommandBufferMsg_AsyncFlush::ID == msg.type() ||
+ (uint32_t)GpuCommandBufferMsg_WaitSyncToken::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