summaryrefslogtreecommitdiffstats
path: root/cc/base/worker_pool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/base/worker_pool.cc')
-rw-r--r--cc/base/worker_pool.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/base/worker_pool.cc b/cc/base/worker_pool.cc
index 469f67c6..d276529 100644
--- a/cc/base/worker_pool.cc
+++ b/cc/base/worker_pool.cc
@@ -4,6 +4,8 @@
#include "cc/base/worker_pool.h"
+#include <algorithm>
+
#include "base/bind.h"
#include "base/debug/trace_event.h"
#include "base/stringprintf.h"
@@ -344,10 +346,9 @@ void WorkerPool::Inner::OnIdleOnOriginThread() {
void WorkerPool::Inner::Run() {
#if defined(OS_ANDROID)
// TODO(epenner): Move thread priorities to base. (crbug.com/170549)
- int nice_value = 10; // Idle priority.
+ int nice_value = 10; // Idle priority.
setpriority(PRIO_PROCESS, base::PlatformThread::CurrentId(), nice_value);
#endif
-
{
base::AutoLock lock(lock_);