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

Unified Diff: content/renderer/gpu/compositor_output_surface.cc

Issue 1051863003: Turn ThreadPriority enum into an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setthreadpri
Patch Set: nits Created 5 years, 9 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/gpu/gpu_child_thread.cc ('k') | content/renderer/media/webrtc_local_audio_track_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_output_surface.cc
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
index 0ce2973d05ca2052ef4f9ca01dd5a15837e20ca3..bdeefe0a8fc98208ccd3b0deea0e018a61cb0c64 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -215,12 +215,12 @@ bool CompositorOutputSurface::Send(IPC::Message* message) {
namespace {
#if defined(OS_ANDROID)
void SetThreadPriorityToIdle(base::PlatformThreadHandle handle) {
- base::PlatformThread::SetThreadPriority(
- handle, base::kThreadPriority_Background);
+ base::PlatformThread::SetThreadPriority(handle,
+ base::ThreadPriority::BACKGROUND);
}
void SetThreadPriorityToDefault(base::PlatformThreadHandle handle) {
- base::PlatformThread::SetThreadPriority(
- handle, base::kThreadPriority_Normal);
+ base::PlatformThread::SetThreadPriority(handle,
+ base::ThreadPriority::NORMAL);
}
#else
void SetThreadPriorityToIdle(base::PlatformThreadHandle handle) {}
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/renderer/media/webrtc_local_audio_track_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698