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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.h

Issue 1543593002: Forward fill and stroke styles from 2d canvas to canvas filters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/core/svg/graphics/filters/SVGFilterBuilder.h
diff --git a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.h b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.h
index 6cfd03ccc3488711f3fc93aa3a1e0a7f6a1e2da2..cecda7d4fdbd88f89b393737122b3379dac2ffbb 100644
--- a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.h
+++ b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.h
@@ -23,6 +23,7 @@
#include "platform/graphics/filters/FilterEffect.h"
#include "platform/heap/Handle.h"
+#include "third_party/skia/include/core/SkShader.h"
#include "wtf/HashMap.h"
#include "wtf/HashSet.h"
#include "wtf/PassRefPtr.h"
@@ -77,7 +78,9 @@ class SVGFilterBuilder {
public:
SVGFilterBuilder(
PassRefPtrWillBeRawPtr<FilterEffect> sourceGraphic,
- PassRefPtrWillBeRawPtr<SVGFilterGraphNodeMap> = nullptr);
+ PassRefPtrWillBeRawPtr<SVGFilterGraphNodeMap> = nullptr,
+ PassRefPtr<SkShader> fillShader = nullptr,
+ PassRefPtr<SkShader> strokeShader = nullptr);
void buildGraph(Filter*, SVGFilterElement&, const FloatRect&);
@@ -95,6 +98,7 @@ private:
RefPtrWillBeMember<FilterEffect> m_lastEffect;
RefPtrWillBeMember<SVGFilterGraphNodeMap> m_nodeMap;
+ RefPtrWillBeMember<Filter> m_paintFilter;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698