Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3939)

Unified Diff: base/threading/platform_thread_linux.cc

Issue 1214503002: Increase priority of raster threads on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/threading/platform_thread_linux.cc
diff --git a/base/threading/platform_thread_linux.cc b/base/threading/platform_thread_linux.cc
index 9f7437418a7299ec6ab92d80b1be6735f6b9b9fa..684e95043bff5d7c6658e29d60fa72ca85463488 100644
--- a/base/threading/platform_thread_linux.cc
+++ b/base/threading/platform_thread_linux.cc
@@ -30,8 +30,9 @@ const struct sched_param kRealTimePrio = {8};
#endif
} // namespace
-const ThreadPriorityToNiceValuePair kThreadPriorityToNiceValueMap[4] = {
+const ThreadPriorityToNiceValuePair kThreadPriorityToNiceValueMap[5] = {
{ThreadPriority::BACKGROUND, 10},
+ {ThreadPriority::UI_BACKGROUND, 9},
{ThreadPriority::NORMAL, 0},
{ThreadPriority::DISPLAY, -6},
{ThreadPriority::REALTIME_AUDIO, -10},

Powered by Google App Engine
This is Rietveld 408576698