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

Unified Diff: content/gpu/gpu_main.cc

Issue 1690173004: content: Increase thread priority for display critical IO threads on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl format Created 4 years, 10 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 | « content/child/child_process.cc ('k') | content/gpu/gpu_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 977bd73ca229eebe9a99636db4087039c4629276..7ce05a039701fdea4ff4f327d823d31c07a7b0bf 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -394,7 +394,12 @@ int GpuMain(const MainFunctionParams& parameters) {
gpu::SyncPointManager sync_point_manager(false);
- GpuProcess gpu_process;
+ base::ThreadPriority io_thread_priority = base::ThreadPriority::NORMAL;
+#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
+ io_thread_priority = base::ThreadPriority::DISPLAY;
+#endif
+
+ GpuProcess gpu_process(io_thread_priority);
GpuChildThread* child_thread = new GpuChildThread(
watchdog_thread.get(), dead_on_arrival, gpu_info, deferred_messages.Get(),
« no previous file with comments | « content/child/child_process.cc ('k') | content/gpu/gpu_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698