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

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

Issue 1775763002: gpu: Ensure that preempted channels wake up after preemption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | no next file » | 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 127b1a1ff6054c97b2452fcbff75ea66655302f0..21ea23d89bcb5783e890d03985f924fa0e16525b 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -231,6 +231,10 @@ void GpuChannelMessageQueue::PauseMessageProcessing() {
base::AutoLock auto_lock(channel_lock_);
DCHECK(!channel_messages_.empty());
+ // If we have been preempted by another channel, just post a task to wake up.
+ if (scheduled_)
+ channel_->PostHandleMessage(this);
+
sync_point_order_data_->PauseProcessingOrderNumber(
channel_messages_.front()->order_number);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698