OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CompositorWorklet_h |
| 6 #define CompositorWorklet_h |
| 7 |
| 8 #include "modules/ModulesExport.h" |
| 9 #include "modules/worklet/Worklet.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class CompositorWorkletGlobalScopeProxy; |
| 15 |
| 16 class MODULES_EXPORT CompositorWorklet final : public Worklet { |
| 17 WTF_MAKE_NONCOPYABLE(CompositorWorklet); |
| 18 public: |
| 19 static CompositorWorklet* create(LocalFrame*, ExecutionContext*); |
| 20 ~CompositorWorklet() override; |
| 21 |
| 22 WorkletGlobalScopeProxy* workletGlobalScopeProxy() const final; |
| 23 |
| 24 DECLARE_VIRTUAL_TRACE(); |
| 25 |
| 26 private: |
| 27 CompositorWorklet(LocalFrame*, ExecutionContext*); |
| 28 |
| 29 CompositorWorkletGlobalScopeProxy* m_workletGlobalScopeProxy; |
| 30 }; |
| 31 |
| 32 } // namespace blink |
| 33 |
| 34 #endif // CompositorWorklet_h |
OLD | NEW |