Index: third_party/WebKit/Source/modules/csspaint/PaintWorklet.h |
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h |
index 1bf6a6962fcebf37c282efbb62dc46efd860365f..c5fa37449f06e1ef96fc05f6608f7bd4a1f91f55 100644 |
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h |
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h |
@@ -10,20 +10,26 @@ |
namespace blink { |
+class CSSPaintDefinition; |
+class CSSPaintImageGeneratorImpl; |
+class PaintWorkletGlobalScope; |
+ |
class PaintWorklet final : public Worklet { |
WTF_MAKE_NONCOPYABLE(PaintWorklet); |
public: |
static PaintWorklet* create(LocalFrame*, ExecutionContext*); |
~PaintWorklet() override; |
- WorkletGlobalScope* workletGlobalScope() const final { return m_paintWorkletGlobalScope.get(); } |
+ WorkletGlobalScope* workletGlobalScope() const final; |
+ CSSPaintDefinition* findDefinition(const String& name); |
+ void addPendingGenerator(const String& name, PassRefPtrWillBeRawPtr<CSSPaintImageGeneratorImpl>); |
DECLARE_VIRTUAL_TRACE(); |
private: |
PaintWorklet(LocalFrame*, ExecutionContext*); |
- RefPtrWillBeMember<WorkletGlobalScope> m_paintWorkletGlobalScope; |
+ RefPtrWillBeMember<PaintWorkletGlobalScope> m_paintWorkletGlobalScope; |
}; |
} // namespace blink |