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

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

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.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp
index c184100effc65a9046c063ab50ec68fc93b78521..780a91d4356f6975a2347864ff82310a0133b1e8 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp
@@ -28,6 +28,21 @@ PaintWorklet::~PaintWorklet()
{
}
+WorkletGlobalScope* PaintWorklet::workletGlobalScope() const
+{
+ return m_paintWorkletGlobalScope.get();
+}
+
+CSSPaintDefinition* PaintWorklet::findDefinition(const String& name)
+{
+ return m_paintWorkletGlobalScope->findDefinition(name);
+}
+
+void PaintWorklet::addPendingGenerator(const String& name, PassRefPtrWillBeRawPtr<CSSPaintImageGeneratorImpl> generator)
+{
+ return m_paintWorkletGlobalScope->addPendingGenerator(name, generator);
+}
+
DEFINE_TRACE(PaintWorklet)
{
visitor->trace(m_paintWorkletGlobalScope);

Powered by Google App Engine
This is Rietveld 408576698