Index: third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h |
diff --git a/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h b/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a1f556a6e9189fea586716f57df4c111bd6df275 |
--- /dev/null |
+++ b/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PaintFilterEffect_h |
+#define PaintFilterEffect_h |
+ |
+#include "platform/graphics/filters/FilterEffect.h" |
+ |
+class SkShader; |
+ |
+namespace blink { |
+ |
+class PLATFORM_EXPORT PaintFilterEffect : public FilterEffect { |
+public: |
+ static PassRefPtrWillBeRawPtr<PaintFilterEffect> create(Filter*, PassRefPtr<SkShader>); |
+ ~PaintFilterEffect() override; |
+ |
+ FilterEffectType filterEffectType() const override { return FilterEffectTypeSourceInput; } |
+ |
+ static const AtomicString& fillEffectName(); |
fs
2015/12/21 19:34:20
I think these could just be local to the SVGFilter
ajuma
2016/01/11 19:14:08
Done.
|
+ static const AtomicString& strokeEffectName(); |
+ |
+ TextStream& externalRepresentation(TextStream&, int indention) const override; |
+ PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder&) override; |
+ |
+private: |
+ PaintFilterEffect(Filter*, PassRefPtr<SkShader>); |
+ |
+ RefPtr<SkShader> m_shader; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // PaintFilterEffect_h |