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

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

Issue 1866623002: Hook up CSSPaintValue::image to CSS Paint API callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments + rebase. Created 4 years, 8 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..d6e05c355c1699307cf6226f48445b5c278e69e3 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, CSSPaintImageGeneratorImpl* generator)
+{
+ return m_paintWorkletGlobalScope->addPendingGenerator(name, generator);
+}
+
DEFINE_TRACE(PaintWorklet)
{
visitor->trace(m_paintWorkletGlobalScope);

Powered by Google App Engine
This is Rietveld 408576698