| Index: content/gpu/gpu_child_thread.cc
|
| diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
|
| index 06fdbb2fa065bb2c3a122e0ca35260e65087038e..c16f8e81bd25891d07f1234ad4735ffe99997257 100644
|
| --- a/content/gpu/gpu_child_thread.cc
|
| +++ b/content/gpu/gpu_child_thread.cc
|
| @@ -21,6 +21,11 @@
|
| #include "ipc/ipc_sync_message_filter.h"
|
| #include "ui/gl/gl_implementation.h"
|
|
|
| +#if defined(OS_ANDROID)
|
| +// TODO(epenner): Move thread priorities to base. (crbug.com/170549)
|
| +#include <sys/resource.h>
|
| +#endif
|
| +
|
| namespace content {
|
| namespace {
|
|
|
| @@ -125,6 +130,12 @@ void GpuChildThread::OnInitialize() {
|
| return;
|
| }
|
|
|
| +#if defined(OS_ANDROID)
|
| + // TODO(epenner): Move thread priorities to base. (crbug.com/170549)
|
| + int nice_value = -6; // High priority
|
| + setpriority(PRIO_PROCESS, base::PlatformThread::CurrentId(), nice_value);
|
| +#endif
|
| +
|
| // We don't need to pipe log messages if we are running the GPU thread in
|
| // the browser process.
|
| if (!in_browser_process_)
|
|
|