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 "public/platform/Platform.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 PassRefPtr<CompositorWorkerThread> CompositorWorkerThread::create(PassRefPtr<Wor
kerLoaderProxy> workerLoaderProxy, WorkerObjectProxy& workerObjectProxy, double
timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData) |
| 16 { |
| 17 ASSERT(isMainThread()); |
| 18 return adoptRef(new CompositorWorkerThread(workerLoaderProxy, workerObjectPr
oxy, timeOrigin, startupData)); |
| 19 } |
| 20 |
| 21 CompositorWorkerThread::CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy> wor
kerLoaderProxy, WorkerObjectProxy& workerObjectProxy, double timeOrigin, PassOwn
PtrWillBeRawPtr<WorkerThreadStartupData> startupData) |
| 22 : DedicatedWorkerThread(workerLoaderProxy, workerObjectProxy, timeOrigin, st
artupData) |
| 23 { |
| 24 } |
| 25 |
| 26 CompositorWorkerThread::~CompositorWorkerThread() |
| 27 { |
| 28 } |
| 29 |
| 30 v8::Isolate* CompositorWorkerThread::initializeIsolate() |
| 31 { |
| 32 return WorkerThread::initializeIsolate(); |
| 33 } |
| 34 |
| 35 void CompositorWorkerThread::willDestroyIsolate() |
| 36 { |
| 37 WorkerThread::willDestroyIsolate(); |
| 38 } |
| 39 |
| 40 void CompositorWorkerThread::destroyIsolate() |
| 41 { |
| 42 WorkerThread::destroyIsolate(); |
| 43 } |
| 44 |
| 45 void CompositorWorkerThread::terminateV8Execution() |
| 46 { |
| 47 WorkerThread::terminateV8Execution(); |
| 48 } |
| 49 |
| 50 PassOwnPtr<WebThreadSupportingGC> CompositorWorkerThread::createWebThreadSupport
ingGC() |
| 51 { |
| 52 return WorkerThread::createWebThreadSupportingGC(); |
| 53 } |
| 54 |
| 55 void CompositorWorkerThread::didStartRunLoop() |
| 56 { |
| 57 WorkerThread::didStartRunLoop(); |
| 58 } |
| 59 |
| 60 void CompositorWorkerThread::didStopRunLoop() |
| 61 { |
| 62 WorkerThread::didStopRunLoop(); |
| 63 } |
| 64 |
| 65 } // namespace blink |
OLD | NEW |