Chromium Code Reviews| Index: Source/modules/compositorworker/CompositorWorkerThread.h |
| diff --git a/Source/modules/compositorworker/CompositorWorkerThread.h b/Source/modules/compositorworker/CompositorWorkerThread.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..76a3f60db786b8ba350d34dea6456ff85f2e789a |
| --- /dev/null |
| +++ b/Source/modules/compositorworker/CompositorWorkerThread.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CompositorWorkerThread_h |
| +#define CompositorWorkerThread_h |
| + |
| +#include "core/workers/DedicatedWorkerThread.h" |
| + |
| +namespace blink { |
| + |
| +class CompositorWorkerThread final : public DedicatedWorkerThread { |
|
kinuko
2015/03/25 05:48:45
If we're going to use the underlying thread differ
sadrul
2015/03/25 06:13:07
WorkerMessagingProxy::createWorkerThread() expects
tkent
2015/03/25 07:37:55
Probably we should introduce new WorkerThread clas
sadrul
2015/03/26 01:27:48
Turns out, we can just use 'WorkerThread' (instead
|
| +public: |
| + static PassRefPtr<CompositorWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>); |
| + virtual ~CompositorWorkerThread(); |
| + |
| +private: |
| + CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>); |
| + |
| + v8::Isolate* initializeIsolate() override; |
| + void willDestroyIsolate() override; |
| + void destroyIsolate() override; |
| + void terminateV8Execution() override; |
| + |
| + PassOwnPtr<WebThreadSupportingGC> createWebThreadSupportingGC() override; |
| + void didStartRunLoop() override; |
| + void didStopRunLoop() override; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // CompositorWorkerThread_h |