summaryrefslogtreecommitdiffstats
path: root/cc/worker_pool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/worker_pool.cc')
-rw-r--r--cc/worker_pool.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/worker_pool.cc b/cc/worker_pool.cc
index 5e7c681..77e6139 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