Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Unified Diff: third_party/WebKit/Source/modules/csspaint/PaintWorklet.h

Issue 1834843002: [WIP] Plumbing for paint Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \o/\o/ Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698