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

Unified Diff: content/common/child_process_messages.h

Issue 2334533002: base: Move renderer threads to the appropriate cpuset. (Closed)
Patch Set: revert to CHECK_NE Created 4 years, 3 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_thread_impl.cc ('k') | content/renderer/categorized_worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process_messages.h
diff --git a/content/common/child_process_messages.h b/content/common/child_process_messages.h
index a0fbc17ec6dd573058f61445e1bb2fa923550910..a3c48897e71ee98be391e119bc47bc00cbe1073e 100644
--- a/content/common/child_process_messages.h
+++ b/content/common/child_process_messages.h
@@ -27,6 +27,10 @@
#include "ui/gfx/ipc/gfx_param_traits.h"
#include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
+#if defined(OS_LINUX)
+#include "base/threading/platform_thread.h"
+#endif
+
IPC_ENUM_TRAITS_MAX_VALUE(tracked_objects::ThreadData::Status,
tracked_objects::ThreadData::STATUS_LAST)
@@ -66,6 +70,11 @@ IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot)
IPC_STRUCT_TRAITS_MEMBER(process_id)
IPC_STRUCT_TRAITS_END()
+#if defined(OS_LINUX)
+IPC_ENUM_TRAITS_MAX_VALUE(base::ThreadPriority,
+ base::ThreadPriority::REALTIME_AUDIO)
+#endif
+
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
@@ -211,3 +220,10 @@ IPC_SYNC_MESSAGE_CONTROL2_1(
// memory.
IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory,
content::DiscardableSharedMemoryId)
+
+#if defined(OS_LINUX)
+// Asks the browser to change the priority of thread.
+IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority,
+ base::PlatformThreadId,
+ base::ThreadPriority)
+#endif
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/renderer/categorized_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698