Chromium Code Reviews| 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 #ifndef CompositorWorkerThread_h | |
| 6 #define CompositorWorkerThread_h | |
| 7 | |
| 8 #include "core/workers/DedicatedWorkerThread.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 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
| |
| 13 public: | |
| 14 static PassRefPtr<CompositorWorkerThread> create(PassRefPtr<WorkerLoaderProx y>, WorkerObjectProxy&, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadSt artupData>); | |
| 15 virtual ~CompositorWorkerThread(); | |
| 16 | |
| 17 private: | |
| 18 CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, do uble timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>); | |
| 19 | |
| 20 v8::Isolate* initializeIsolate() override; | |
| 21 void willDestroyIsolate() override; | |
| 22 void destroyIsolate() override; | |
| 23 void terminateV8Execution() override; | |
| 24 | |
| 25 PassOwnPtr<WebThreadSupportingGC> createWebThreadSupportingGC() override; | |
| 26 void didStartRunLoop() override; | |
| 27 void didStopRunLoop() override; | |
| 28 }; | |
| 29 | |
| 30 } // namespace blink | |
| 31 | |
| 32 #endif // CompositorWorkerThread_h | |
| OLD | NEW |