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

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: Add documentation and ASSERTS for some subtleties. Created 5 years 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..4c8335edd0dc000236a445fc856d021ee7c753ed 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 : std::string())) {
+ thread_->StartWithOptions(options);
thread_task_runner_ = thread_->task_runner();
base::WaitableEvent completion(false, false);
« no previous file with comments | « components/scheduler/child/webthread_impl_for_worker_scheduler.h ('k') | content/child/blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698