| Index: ui/gl/async_pixel_transfer_delegate_android.cc
|
| diff --git a/ui/gl/async_pixel_transfer_delegate_android.cc b/ui/gl/async_pixel_transfer_delegate_android.cc
|
| index 1ebd3a9d241d13a75e9d15c60435a2431c87b3ec..41d83962d62292d85711ee8cf92ec25162d3d1ee 100644
|
| --- a/ui/gl/async_pixel_transfer_delegate_android.cc
|
| +++ b/ui/gl/async_pixel_transfer_delegate_android.cc
|
| @@ -24,6 +24,11 @@
|
| #include "ui/gl/gl_context.h"
|
| #include "ui/gl/gl_surface_egl.h"
|
|
|
| +#if defined(OS_ANDROID)
|
| +// TODO(epenner): Move thread priorities to base. (crbug.com/170549)
|
| +#include <sys/resource.h>
|
| +#endif
|
| +
|
| using base::SharedMemory;
|
| using base::SharedMemoryHandle;
|
|
|
| @@ -97,6 +102,12 @@ class TransferThread : public base::Thread {
|
| gfx::PreferDiscreteGpu);
|
| bool is_current = context_->MakeCurrent(surface_);
|
| DCHECK(is_current);
|
| +
|
| +#if defined(OS_ANDROID)
|
| + // TODO(epenner): Move thread priorities to base. (crbug.com/170549)
|
| + int nice_value = 10; // Idle priority.
|
| + setpriority(PRIO_PROCESS, base::PlatformThread::CurrentId(), nice_value);
|
| +#endif
|
| }
|
|
|
| virtual void CleanUp() OVERRIDE {
|
|
|