diff options
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
| -rw-r--r-- | libs/hwui/renderthread/RenderThread.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp index 03e98d5..403e164 100644 --- a/libs/hwui/renderthread/RenderThread.cpp +++ b/libs/hwui/renderthread/RenderThread.cpp @@ -14,10 +14,11 @@ * limitations under the License. */ -#define LOG_TAG "RenderThread" - #include "RenderThread.h" +#if defined(HAVE_PTHREADS) +#include <sys/resource.h> +#endif #include <gui/DisplayEventReceiver.h> #include <utils/Log.h> @@ -244,6 +245,9 @@ void RenderThread::requestVsync() { } bool RenderThread::threadLoop() { +#if defined(HAVE_PTHREADS) + setpriority(PRIO_PROCESS, 0, PRIORITY_DISPLAY); +#endif initThreadLocals(); int timeoutMillis = -1; |
