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

Unified Diff: components/scheduler/child/webthread_impl_for_worker_scheduler.cc

Issue 1449953002: compositor-worker: Refactor CompositorWorkerManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewer comments. Created 5 years, 1 month 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
Index: components/scheduler/child/webthread_impl_for_worker_scheduler.cc
diff --git a/components/scheduler/child/webthread_impl_for_worker_scheduler.cc b/components/scheduler/child/webthread_impl_for_worker_scheduler.cc
index 8cd69b80d0d7d7a760d869b2e17ef2a29db60e2f..abe0d554099c80e1019c346a381ec1fa08037f36 100644
--- a/components/scheduler/child/webthread_impl_for_worker_scheduler.cc
+++ b/components/scheduler/child/webthread_impl_for_worker_scheduler.cc
@@ -20,8 +20,13 @@ namespace scheduler {
WebThreadImplForWorkerScheduler::WebThreadImplForWorkerScheduler(
const char* name)
- : thread_(new base::Thread(name)) {
- thread_->Start();
+ : WebThreadImplForWorkerScheduler(name, base::Thread::Options()) {}
+
+WebThreadImplForWorkerScheduler::WebThreadImplForWorkerScheduler(
+ const char* name,
+ base::Thread::Options options)
+ : thread_(new base::Thread(name ? name : "")) {
piman 2015/11/30 21:41:45 nit: std::string() instead of "" to avoid a needle
Ian Vollick 2015/12/01 04:00:03 Done.
+ thread_->StartWithOptions(options);
thread_task_runner_ = thread_->task_runner();
base::WaitableEvent completion(false, false);

Powered by Google App Engine
This is Rietveld 408576698