Chromium Code Reviews| Index: cc/worker_pool.cc |
| diff --git a/cc/worker_pool.cc b/cc/worker_pool.cc |
| index 5e7c681ca5bc7b2108ca78e218bd2663c7fc5a47..77e61398c27456a866ab471eff5e84b380b500ce 100644 |
| --- a/cc/worker_pool.cc |
| +++ b/cc/worker_pool.cc |
| @@ -391,7 +391,10 @@ void WorkerPool::RunCheapTasks() { |
| pending_cheap_tasks_.take_front(); |
| PostTask(task.Pass(), false); |
| } |
| + |
| run_cheap_tasks_pending_ = false; |
| + if (base::subtle::Acquire_Load(&pending_task_count_) == 0) |
| + OnIdle(); |
| } |
| } // namespace cc |