| Index: third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
|
| diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h b/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
|
| index 4c87e4915c4aa2a092e291fc71a9818515926a78..3095b31f699de6ffd65e51617c394d84560b5443 100644
|
| --- a/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
|
| +++ b/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
|
| @@ -9,10 +9,12 @@
|
| #include "core/dom/ExecutionContext.h"
|
| #include "modules/ModulesExport.h"
|
| #include "modules/worklet/WorkletGlobalScope.h"
|
| +#include "platform/graphics/ImageBuffer.h"
|
|
|
| namespace blink {
|
|
|
| class CSSPaintDefinition;
|
| +class CSSPaintImageGeneratorImpl;
|
| class ExceptionState;
|
|
|
| class MODULES_EXPORT PaintWorkletGlobalScope : public WorkletGlobalScope {
|
| @@ -26,6 +28,7 @@ public:
|
| void registerPaint(const String& name, const ScriptValue& ctor, ExceptionState&);
|
|
|
| CSSPaintDefinition* findDefinition(const String& name);
|
| + void addPendingGenerator(const String& name, CSSPaintImageGeneratorImpl*);
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| @@ -34,6 +37,10 @@ private:
|
|
|
| typedef HeapHashMap<String, Member<CSSPaintDefinition>> DefinitionMap;
|
| DefinitionMap m_paintDefinitions;
|
| +
|
| + typedef HeapHashSet<WeakMember<CSSPaintImageGeneratorImpl>> GeneratorHashSet;
|
| + typedef HeapHashMap<String, Member<GeneratorHashSet>> PendingGeneratorMap;
|
| + PendingGeneratorMap m_pendingGenerators;
|
| };
|
|
|
| DEFINE_TYPE_CASTS(PaintWorkletGlobalScope, ExecutionContext, context, context->isPaintWorkletGlobalScope(), context.isPaintWorkletGlobalScope());
|
|
|