Commit 1a908118 authored by boliu's avatar boliu Committed by Commit bot

Call MakeCurrent in in-process idle work

BUG=413044

Review URL: https://codereview.chromium.org/556323004

Cr-Commit-Position: refs/heads/master@{#294308}
parent 8a838980
...@@ -522,7 +522,7 @@ void InProcessCommandBuffer::PerformIdleWork() { ...@@ -522,7 +522,7 @@ void InProcessCommandBuffer::PerformIdleWork() {
CheckSequencedThread(); CheckSequencedThread();
idle_work_pending_ = false; idle_work_pending_ = false;
base::AutoLock lock(command_buffer_lock_); base::AutoLock lock(command_buffer_lock_);
if (gpu_scheduler_->HasMoreWork()) { if (MakeCurrent() && gpu_scheduler_->HasMoreWork()) {
gpu_scheduler_->PerformIdleWork(); gpu_scheduler_->PerformIdleWork();
ScheduleIdleWorkOnGpuThread(); ScheduleIdleWorkOnGpuThread();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment