OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "config.h" | |
6 #include "modules/compositorworker/CompositorWorkerThread.h" | |
7 | |
8 #include "bindings/core/v8/V8Initializer.h" | |
9 #include "core/workers/WorkerObjectProxy.h" | |
10 #include "core/workers/WorkerThreadStartupData.h" | |
11 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" | |
12 #include "public/platform/Platform.h" | |
13 | |
14 namespace blink { | |
15 | |
16 PassRefPtr<CompositorWorkerThread> CompositorWorkerThread::create(PassRefPtr<Wor kerLoaderProxy> workerLoaderProxy, WorkerObjectProxy& workerObjectProxy, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData) | |
17 { | |
18 ASSERT(isMainThread()); | |
19 return adoptRef(new CompositorWorkerThread(workerLoaderProxy, workerObjectPr oxy, timeOrigin, startupData)); | |
20 } | |
21 | |
22 CompositorWorkerThread::CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy> wor kerLoaderProxy, WorkerObjectProxy& workerObjectProxy, double timeOrigin, PassOwn PtrWillBeRawPtr<WorkerThreadStartupData> startupData) | |
23 : WorkerThread(workerLoaderProxy, workerObjectProxy, startupData) | |
24 , m_workerObjectProxy(workerObjectProxy) | |
25 , m_timeOrigin(timeOrigin) | |
26 { | |
27 } | |
28 | |
29 CompositorWorkerThread::~CompositorWorkerThread() | |
30 { | |
31 } | |
32 | |
33 v8::Isolate* CompositorWorkerThread::initializeIsolate() | |
tkent
2015/03/26 04:22:10
Do you still need these override?
sadrul
2015/03/26 04:36:39
We still need to override these for CompositorWork
tkent
2015/03/26 05:33:12
ok, it makes sense. lgtm
| |
34 { | |
35 return WorkerThread::initializeIsolate(); | |
36 } | |
37 | |
38 void CompositorWorkerThread::willDestroyIsolate() | |
39 { | |
40 WorkerThread::willDestroyIsolate(); | |
41 } | |
42 | |
43 void CompositorWorkerThread::destroyIsolate() | |
44 { | |
45 WorkerThread::destroyIsolate(); | |
46 } | |
47 | |
48 void CompositorWorkerThread::terminateV8Execution() | |
49 { | |
50 WorkerThread::terminateV8Execution(); | |
51 } | |
52 | |
53 PassOwnPtr<WebThreadSupportingGC> CompositorWorkerThread::createWebThreadSupport ingGC() | |
54 { | |
55 return WorkerThread::createWebThreadSupportingGC(); | |
56 } | |
57 | |
58 void CompositorWorkerThread::didStartRunLoop() | |
59 { | |
60 WorkerThread::didStartRunLoop(); | |
61 } | |
62 | |
63 void CompositorWorkerThread::didStopRunLoop() | |
64 { | |
65 WorkerThread::didStopRunLoop(); | |
66 } | |
67 | |
68 PassRefPtrWillBeRawPtr<WorkerGlobalScope> CompositorWorkerThread::createWorkerGl obalScope(PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData) | |
69 { | |
70 return CompositorWorkerGlobalScope::create(this, startupData, m_timeOrigin); | |
71 } | |
72 | |
73 } // namespace blink | |
OLD | NEW |