| Index: third_party/WebKit/Source/modules/csspaint/DOMWindowPaintWorklet.h
|
| diff --git a/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h b/third_party/WebKit/Source/modules/csspaint/DOMWindowPaintWorklet.h
|
| similarity index 37%
|
| rename from third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h
|
| rename to third_party/WebKit/Source/modules/csspaint/DOMWindowPaintWorklet.h
|
| index fe4589ebf8192f1550d166ecd440059fc271c8ad..78a896c11cbf2ebe5af464bc85c4d7088f9eb898 100644
|
| --- a/third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h
|
| +++ b/third_party/WebKit/Source/modules/csspaint/DOMWindowPaintWorklet.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef DOMWindowWorklet_h
|
| -#define DOMWindowWorklet_h
|
| +#ifndef DOMWindowPaintWorklet_h
|
| +#define DOMWindowPaintWorklet_h
|
|
|
| #include "core/frame/DOMWindowProperty.h"
|
| #include "platform/Supplementable.h"
|
| @@ -13,26 +13,27 @@ namespace blink {
|
|
|
| class DOMWindow;
|
| class ExecutionContext;
|
| +class PaintWorklet;
|
| class Worklet;
|
|
|
| -class DOMWindowWorklet final : public NoBaseWillBeGarbageCollected<DOMWindowWorklet>, public WillBeHeapSupplement<LocalDOMWindow>, public DOMWindowProperty {
|
| - WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowWorklet);
|
| - DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowWorklet);
|
| - USING_FAST_MALLOC_WILL_BE_REMOVED(DOMWindowWorklet);
|
| +class DOMWindowPaintWorklet final : public NoBaseWillBeGarbageCollected<DOMWindowPaintWorklet>, public WillBeHeapSupplement<LocalDOMWindow>, public DOMWindowProperty {
|
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowPaintWorklet);
|
| + DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowPaintWorklet);
|
| + USING_FAST_MALLOC_WILL_BE_REMOVED(DOMWindowPaintWorklet);
|
| public:
|
| - static DOMWindowWorklet& from(LocalDOMWindow&);
|
| - static Worklet* renderWorklet(ExecutionContext*, DOMWindow&);
|
| - Worklet* renderWorklet(ExecutionContext*) const;
|
| + static DOMWindowPaintWorklet& from(LocalDOMWindow&);
|
| + static Worklet* paintWorklet(ExecutionContext*, DOMWindow&);
|
| + PaintWorklet* paintWorklet(ExecutionContext*) const;
|
|
|
| DECLARE_TRACE();
|
|
|
| private:
|
| - explicit DOMWindowWorklet(LocalDOMWindow&);
|
| + explicit DOMWindowPaintWorklet(LocalDOMWindow&);
|
| static const char* supplementName();
|
|
|
| - mutable PersistentWillBeMember<Worklet> m_renderWorklet;
|
| + mutable PersistentWillBeMember<PaintWorklet> m_paintWorklet;
|
| };
|
|
|
| } // namespace blink
|
|
|
| -#endif // DOMWindowWorklet_h
|
| +#endif // DOMWindowPaintWorklet_h
|
|
|