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

Side by Side Diff: content/browser/browser_main_loop.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 unified diff | Download patch
« no previous file with comments | « no previous file | content/child/child_process.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 options = io_message_loop_options; 877 options = io_message_loop_options;
878 #endif // defined(OS_WIN) 878 #endif // defined(OS_WIN)
879 options.timer_slack = base::TIMER_SLACK_MAXIMUM; 879 options.timer_slack = base::TIMER_SLACK_MAXIMUM;
880 break; 880 break;
881 case BrowserThread::IO: 881 case BrowserThread::IO:
882 TRACE_EVENT_BEGIN1("startup", 882 TRACE_EVENT_BEGIN1("startup",
883 "BrowserMainLoop::CreateThreads:start", 883 "BrowserMainLoop::CreateThreads:start",
884 "Thread", "BrowserThread::IO"); 884 "Thread", "BrowserThread::IO");
885 thread_to_start = &io_thread_; 885 thread_to_start = &io_thread_;
886 options = io_message_loop_options; 886 options = io_message_loop_options;
887 #if defined(OS_ANDROID) 887 #if defined(OS_ANDROID) || defined(OS_CHROMEOS)
888 // Up the priority of the |io_thread_| as some of its IPCs relate to 888 // Up the priority of the |io_thread_| as some of its IPCs relate to
889 // display tasks. 889 // display tasks.
890 options.priority = base::ThreadPriority::DISPLAY; 890 options.priority = base::ThreadPriority::DISPLAY;
891 #endif 891 #endif
892 break; 892 break;
893 case BrowserThread::UI: 893 case BrowserThread::UI:
894 case BrowserThread::ID_COUNT: 894 case BrowserThread::ID_COUNT:
895 default: 895 default:
896 NOTREACHED(); 896 NOTREACHED();
897 break; 897 break;
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 DCHECK(is_tracing_startup_for_duration_); 1463 DCHECK(is_tracing_startup_for_duration_);
1464 1464
1465 is_tracing_startup_for_duration_ = false; 1465 is_tracing_startup_for_duration_ = false;
1466 TracingController::GetInstance()->StopTracing( 1466 TracingController::GetInstance()->StopTracing(
1467 TracingController::CreateFileSink( 1467 TracingController::CreateFileSink(
1468 startup_trace_file_, 1468 startup_trace_file_,
1469 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); 1469 base::Bind(OnStoppedStartupTracing, startup_trace_file_)));
1470 } 1470 }
1471 1471
1472 } // namespace content 1472 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/child/child_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698