| Index: third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h
|
| diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h
|
| similarity index 34%
|
| copy from third_party/WebKit/Source/modules/csspaint/PaintWorklet.h
|
| copy to third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h
|
| index 5d3a016f563eb82a6d8efd01dfe8205ecae71a09..34e5c21a2ecb14b3e75d0ed2193810a804571e36 100644
|
| --- a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h
|
| +++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h
|
| @@ -2,37 +2,35 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef PaintWorklet_h
|
| -#define PaintWorklet_h
|
| +#ifndef AnimationWorklet_h
|
| +#define AnimationWorklet_h
|
|
|
| #include "modules/ModulesExport.h"
|
| -#include "modules/csspaint/PaintWorkletGlobalScope.h"
|
| #include "modules/worklet/Worklet.h"
|
| #include "platform/heap/Handle.h"
|
|
|
| namespace blink {
|
|
|
| -class CSSPaintDefinition;
|
| -class CSSPaintImageGeneratorImpl;
|
| +class ThreadedWorkletGlobalScopeProxy;
|
| +class WorkletGlobalScopeProxy;
|
|
|
| -class MODULES_EXPORT PaintWorklet final : public Worklet {
|
| - WTF_MAKE_NONCOPYABLE(PaintWorklet);
|
| +class MODULES_EXPORT AnimationWorklet final : public Worklet {
|
| + WTF_MAKE_NONCOPYABLE(AnimationWorklet);
|
| public:
|
| - static PaintWorklet* create(LocalFrame*, ExecutionContext*);
|
| - ~PaintWorklet() override;
|
| + static AnimationWorklet* create(ExecutionContext*);
|
| + ~AnimationWorklet() override;
|
|
|
| - PaintWorkletGlobalScope* workletGlobalScopeProxy() const final;
|
| - CSSPaintDefinition* findDefinition(const String& name);
|
| - void addPendingGenerator(const String& name, CSSPaintImageGeneratorImpl*);
|
| + WorkletGlobalScopeProxy* workletGlobalScopeProxy() const final;
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| - PaintWorklet(LocalFrame*, ExecutionContext*);
|
| + AnimationWorklet(ExecutionContext*);
|
|
|
| - Member<PaintWorkletGlobalScope> m_paintWorkletGlobalScope;
|
| + // TODO(ikilpatrick): this will change to a raw ptr once we have a thread.
|
| + std::unique_ptr<ThreadedWorkletGlobalScopeProxy> m_workletGlobalScopeProxy;
|
| };
|
|
|
| } // namespace blink
|
|
|
| -#endif // PaintWorklet_h
|
| +#endif // AnimationWorklet_h
|
|
|