OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // An implementation of WebThread in terms of base::MessageLoop and | 5 // An implementation of WebThread in terms of base::MessageLoop and |
6 // base::Thread | 6 // base::Thread |
7 | 7 |
8 #include "public/platform/scheduler/child/webthread_base.h" | 8 #include "public/platform/scheduler/child/webthread_base.h" |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/message_loop/message_loop.h" |
13 #include "base/pending_task.h" | 14 #include "base/pending_task.h" |
14 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
15 #include "platform/scheduler/child/compositor_worker_scheduler.h" | 16 #include "platform/scheduler/child/compositor_worker_scheduler.h" |
16 #include "platform/scheduler/child/scheduler_tqm_delegate_impl.h" | 17 #include "platform/scheduler/child/scheduler_tqm_delegate_impl.h" |
17 #include "platform/scheduler/child/webthread_impl_for_worker_scheduler.h" | 18 #include "platform/scheduler/child/webthread_impl_for_worker_scheduler.h" |
18 #include "platform/scheduler/utility/webthread_impl_for_utility_thread.h" | 19 #include "platform/scheduler/utility/webthread_impl_for_utility_thread.h" |
19 #include "public/platform/WebTraceLocation.h" | 20 #include "public/platform/WebTraceLocation.h" |
20 #include "public/platform/scheduler/child/single_thread_idle_task_runner.h" | 21 #include "public/platform/scheduler/child/single_thread_idle_task_runner.h" |
21 | 22 |
22 namespace blink { | 23 namespace blink { |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 base::Thread::Options options) { | 138 base::Thread::Options options) { |
138 return base::MakeUnique<WebThreadForCompositor>(options); | 139 return base::MakeUnique<WebThreadForCompositor>(options); |
139 } | 140 } |
140 | 141 |
141 std::unique_ptr<WebThreadBase> WebThreadBase::InitializeUtilityThread() { | 142 std::unique_ptr<WebThreadBase> WebThreadBase::InitializeUtilityThread() { |
142 return base::MakeUnique<WebThreadImplForUtilityThread>(); | 143 return base::MakeUnique<WebThreadImplForUtilityThread>(); |
143 } | 144 } |
144 | 145 |
145 } // namespace scheduler | 146 } // namespace scheduler |
146 } // namespace blink | 147 } // namespace blink |
OLD | NEW |