Chromium Code Reviews| 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..e4d5afc386668e06a1c4dd704ac048f3dc729f65 100644 |
| --- a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h |
| +++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h |
| @@ -2,37 +2,33 @@ |
| // 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/ThreadedWorkletGlobalScopeProxy.h" |
|
nhiroki
2016/07/28 06:13:53
This is included in *.cpp, too.
Maybe forward decl
ikilpatrick
2016/07/28 20:57:05
Done. Originally so that workletGlobalScopeProxy()
|
| #include "modules/worklet/Worklet.h" |
| #include "platform/heap/Handle.h" |
| namespace blink { |
| -class CSSPaintDefinition; |
| -class CSSPaintImageGeneratorImpl; |
| - |
| -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(LocalFrame*, ExecutionContext*); |
| + ~AnimationWorklet() override; |
| - PaintWorkletGlobalScope* workletGlobalScopeProxy() const final; |
| - CSSPaintDefinition* findDefinition(const String& name); |
| - void addPendingGenerator(const String& name, CSSPaintImageGeneratorImpl*); |
| + ThreadedWorkletGlobalScopeProxy* workletGlobalScopeProxy() const final; |
| DECLARE_VIRTUAL_TRACE(); |
| private: |
| - PaintWorklet(LocalFrame*, ExecutionContext*); |
| + AnimationWorklet(LocalFrame*, 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 |