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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.cc

Issue 556323004: Call MakeCurrent in in-process idle work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: gpu/command_buffer/service/in_process_command_buffer.cc
diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc
index 4d72136bf6783f257b94f02f6986babd3ff217f8..da7433e51939a4186d49b2047d3291313f640d5d 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.cc
+++ b/gpu/command_buffer/service/in_process_command_buffer.cc
@@ -522,7 +522,7 @@ void InProcessCommandBuffer::PerformIdleWork() {
CheckSequencedThread();
idle_work_pending_ = false;
base::AutoLock lock(command_buffer_lock_);
- if (gpu_scheduler_->HasMoreWork()) {
+ if (MakeCurrent() && gpu_scheduler_->HasMoreWork()) {
gpu_scheduler_->PerformIdleWork();
ScheduleIdleWorkOnGpuThread();
}
« 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