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

Unified Diff: base/threading/platform_thread.h

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
« no previous file with comments | « no previous file | base/threading/platform_thread_android.cc » ('j') | base/threading/platform_thread_freebsd.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread.h
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
index 3468f45f91efd4929ea838f91559251a2d75a4ef..26d5e2da4513ab885476c9ac57b8c66fb92a8eb4 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -115,8 +115,11 @@ const PlatformThreadId kInvalidThreadId(0);
// Valid values for SetThreadPriority(), listed in increasing order of
// importance.
enum class ThreadPriority {
- // Suitable for threads that shouldn't disrupt high priority work.
+ // For threads that should be throttled under contention.
BACKGROUND,
+ // For threads that shouldn't disrupt higher-priority work, but which produce
+ // user-visible results.
+ UI_BACKGROUND,
// Default priority level.
NORMAL,
// Suitable for threads which generate data for the display (at ~60Hz).
« no previous file with comments | « no previous file | base/threading/platform_thread_android.cc » ('j') | base/threading/platform_thread_freebsd.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698