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

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

Issue 2539443004: Worker: Move ParentFrameTaskRunners from WorkerReportingProxy to ObjectProxy (Closed)
Patch Set: rebase Created 3 years, 11 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
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 "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "modules/compositorworker/AbstractAnimationWorkletThread.h" 9 #include "modules/compositorworker/AbstractAnimationWorkletThread.h"
10 #include <memory> 10 #include <memory>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class InProcessWorkerObjectProxy; 14 class InProcessWorkerObjectProxy;
15 15
16 class MODULES_EXPORT CompositorWorkerThread final 16 class MODULES_EXPORT CompositorWorkerThread final
17 : public AbstractAnimationWorkletThread { 17 : public AbstractAnimationWorkletThread {
18 public: 18 public:
19 static std::unique_ptr<CompositorWorkerThread> create( 19 static std::unique_ptr<CompositorWorkerThread> create(
20 PassRefPtr<WorkerLoaderProxy>, 20 PassRefPtr<WorkerLoaderProxy>,
21 InProcessWorkerObjectProxy&, 21 InProcessWorkerObjectProxy&,
22 ParentFrameTaskRunners*,
22 double timeOrigin); 23 double timeOrigin);
23 ~CompositorWorkerThread() override; 24 ~CompositorWorkerThread() override;
24 25
25 InProcessWorkerObjectProxy& workerObjectProxy() const { 26 InProcessWorkerObjectProxy& workerObjectProxy() const {
26 return m_workerObjectProxy; 27 return m_workerObjectProxy;
27 } 28 }
28 29
29 protected: 30 protected:
30 WorkerOrWorkletGlobalScope* createWorkerGlobalScope( 31 WorkerOrWorkletGlobalScope* createWorkerGlobalScope(
31 std::unique_ptr<WorkerThreadStartupData>) override; 32 std::unique_ptr<WorkerThreadStartupData>) override;
32 33
33 private: 34 private:
34 CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, 35 CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>,
35 InProcessWorkerObjectProxy&, 36 InProcessWorkerObjectProxy&,
37 ParentFrameTaskRunners*,
36 double timeOrigin); 38 double timeOrigin);
37 39
38 InProcessWorkerObjectProxy& m_workerObjectProxy; 40 InProcessWorkerObjectProxy& m_workerObjectProxy;
39 double m_timeOrigin; 41 double m_timeOrigin;
40 }; 42 };
41 43
42 } // namespace blink 44 } // namespace blink
43 45
44 #endif // CompositorWorkerThread_h 46 #endif // CompositorWorkerThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698