OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "modules/compositorworker/CompositorWorkerThread.h" | 5 #include "modules/compositorworker/CompositorWorkerThread.h" |
6 | 6 |
7 #include "bindings/core/v8/V8GCController.h" | 7 #include "bindings/core/v8/V8GCController.h" |
8 #include "bindings/core/v8/V8Initializer.h" | 8 #include "bindings/core/v8/V8Initializer.h" |
9 #include "core/workers/InProcessWorkerObjectProxy.h" | 9 #include "core/workers/InProcessWorkerObjectProxy.h" |
10 #include "core/workers/WorkerBackingThread.h" | 10 #include "core/workers/WorkerBackingThread.h" |
11 #include "core/workers/WorkerThreadStartupData.h" | 11 #include "core/workers/WorkerThreadStartupData.h" |
12 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" | 12 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" |
13 #include "platform/CrossThreadFunctional.h" | |
14 #include "platform/TraceEvent.h" | 13 #include "platform/TraceEvent.h" |
15 #include "platform/WaitableEvent.h" | 14 #include "platform/WaitableEvent.h" |
16 #include "platform/WebThreadSupportingGC.h" | 15 #include "platform/WebThreadSupportingGC.h" |
17 #include "public/platform/Platform.h" | 16 #include "public/platform/Platform.h" |
18 #include "wtf/Assertions.h" | 17 #include "wtf/Assertions.h" |
| 18 #include "wtf/Functional.h" |
19 #include "wtf/PtrUtil.h" | 19 #include "wtf/PtrUtil.h" |
20 #include <memory> | 20 #include <memory> |
21 | 21 |
22 namespace blink { | 22 namespace blink { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 // This is a singleton class holding the compositor worker thread in this | 26 // This is a singleton class holding the compositor worker thread in this |
27 // renderer process. BackingThreadHolder::m_thread is cleared by | 27 // renderer process. BackingThreadHolder::m_thread is cleared by |
28 // ModulesInitializer::shutdown. | 28 // ModulesInitializer::shutdown. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 DCHECK(isMainThread()); | 147 DCHECK(isMainThread()); |
148 BackingThreadHolder::clear(); | 148 BackingThreadHolder::clear(); |
149 } | 149 } |
150 | 150 |
151 void CompositorWorkerThread::createSharedBackingThreadForTest() | 151 void CompositorWorkerThread::createSharedBackingThreadForTest() |
152 { | 152 { |
153 BackingThreadHolder::createForTest(); | 153 BackingThreadHolder::createForTest(); |
154 } | 154 } |
155 | 155 |
156 } // namespace blink | 156 } // namespace blink |
OLD | NEW |