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

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.cpp

Issue 2123183002: Move crossThreadBind() from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_WTFCrossThreadCopier
Patch Set: Rebase Created 4 years, 5 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698