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

Side by Side Diff: Source/modules/compositorworker/CompositorWorkerThread.h

Issue 1274023003: compositor-worker: Get the thread to run compositor-workers from the Platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 4 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 | Annotate | Revision Log
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 #ifndef CompositorWorkerThread_h 5 #ifndef CompositorWorkerThread_h
6 #define CompositorWorkerThread_h 6 #define CompositorWorkerThread_h
7 7
8 #include "core/workers/WorkerThread.h" 8 #include "core/workers/WorkerThread.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class WorkerObjectProxy; 13 class WorkerObjectProxy;
14 14
15 // This class is overridden in unit-tests. 15 // This class is overridden in unit-tests.
16 class MODULES_EXPORT CompositorWorkerThread : public WorkerThread { 16 class MODULES_EXPORT CompositorWorkerThread : public WorkerThread {
17 public: 17 public:
18 static PassRefPtr<CompositorWorkerThread> create(PassRefPtr<WorkerLoaderProx y>, WorkerObjectProxy&, double timeOrigin); 18 static PassRefPtr<CompositorWorkerThread> create(PassRefPtr<WorkerLoaderProx y>, WorkerObjectProxy&, double timeOrigin);
19 ~CompositorWorkerThread() override; 19 ~CompositorWorkerThread() override;
20 20
21 WorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; } 21 WorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; }
22 22
23 protected: 23 protected:
24 CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, do uble timeOrigin); 24 CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, do uble timeOrigin);
25 25
26 // WorkerThread: 26 // WorkerThread:
27 PassRefPtrWillBeRawPtr<WorkerGlobalScope> createWorkerGlobalScope(PassOwnPtr <WorkerThreadStartupData>) override; 27 PassRefPtrWillBeRawPtr<WorkerGlobalScope> createWorkerGlobalScope(PassOwnPtr <WorkerThreadStartupData>) override;
28 WebThreadSupportingGC& backingThread() override; 28 WebThread& backingThread() override;
29 void didStartRunLoop() override { } 29 void didStartRunLoop() override { }
30 void didStopRunLoop() override { } 30 void didStopRunLoop() override { }
31 void initializeBackingThread() override; 31 void initializeBackingThread() override;
32 void shutdownBackingThread() override; 32 void shutdownBackingThread() override;
33 v8::Isolate* initializeIsolate() override; 33 v8::Isolate* initializeIsolate() override;
34 void willDestroyIsolate() override; 34 void willDestroyIsolate() override;
35 void destroyIsolate() override; 35 void destroyIsolate() override;
36 void terminateV8Execution() override; 36 void terminateV8Execution() override;
37 37
38 private: 38 private:
39 WorkerObjectProxy& m_workerObjectProxy; 39 WorkerObjectProxy& m_workerObjectProxy;
40 double m_timeOrigin; 40 double m_timeOrigin;
41 }; 41 };
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // CompositorWorkerThread_h 45 #endif // CompositorWorkerThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698