| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 AnimationWorkletThread_h | 5 #ifndef AnimationWorkletThread_h |
| 6 #define AnimationWorkletThread_h | 6 #define AnimationWorkletThread_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 WorkerReportingProxy; | 14 class WorkerReportingProxy; |
| 15 | 15 |
| 16 class MODULES_EXPORT AnimationWorkletThread final | 16 class MODULES_EXPORT AnimationWorkletThread final |
| 17 : public AbstractAnimationWorkletThread { | 17 : public AbstractAnimationWorkletThread { |
| 18 public: | 18 public: |
| 19 static std::unique_ptr<AnimationWorkletThread> Create( | 19 static std::unique_ptr<AnimationWorkletThread> Create( |
| 20 PassRefPtr<WorkerLoaderProxy>, | 20 ThreadableLoadingContext*, |
| 21 WorkerReportingProxy&); | 21 WorkerReportingProxy&); |
| 22 ~AnimationWorkletThread() override; | 22 ~AnimationWorkletThread() override; |
| 23 | 23 |
| 24 protected: | 24 protected: |
| 25 WorkerOrWorkletGlobalScope* CreateWorkerGlobalScope( | 25 WorkerOrWorkletGlobalScope* CreateWorkerGlobalScope( |
| 26 std::unique_ptr<WorkerThreadStartupData>) final; | 26 std::unique_ptr<WorkerThreadStartupData>) final; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 AnimationWorkletThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&); | 29 AnimationWorkletThread(ThreadableLoadingContext*, WorkerReportingProxy&); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace blink | 32 } // namespace blink |
| 33 | 33 |
| 34 #endif // AnimationWorkletThread_h | 34 #endif // AnimationWorkletThread_h |
| OLD | NEW |