Skia
2D Graphics Library
SkSVGFeGaussianBlur.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkSVGFeGaussianBlur_DEFINED
9 #define SkSVGFeGaussianBlur_DEFINED
10 
13 
14 class SK_API SkSVGFeGaussianBlur : public SkSVGFe {
15 public:
16  struct StdDeviation {
19  };
20 
23  }
24 
25  SVG_ATTR(StdDeviation, StdDeviation, StdDeviation({0, 0}))
26 
27 protected:
28  sk_sp<SkImageFilter> onMakeImageFilter(const SkSVGRenderContext&,
29  const SkSVGFilterContext&) const override;
30 
31  std::vector<SkSVGFeInputType> getInputs() const override { return {this->getIn()}; }
32 
33  bool parseAndSetAttribute(const char*, const char*) override;
34 
35 private:
37 
38  using INHERITED = SkSVGFe;
39 };
40 
41 #endif // SkSVGFeGaussianBlur_DEFINED
SkSVGTag
Definition: SkSVGNode.h:23
@ kFeGaussianBlur
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition: SkSVGNode.h:203
SkScalar SkSVGNumberType
Definition: SkSVGTypes.h:27
Base class for image filters.
Definition: SkImageFilter.h:35
Definition: SkSVGFeGaussianBlur.h:14
static sk_sp< SkSVGFeGaussianBlur > Make()
Definition: SkSVGFeGaussianBlur.h:21
bool parseAndSetAttribute(const char *, const char *) override
Definition: SkSVGTypes.h:635
Definition: SkSVGFe.h:18
SkSVGFe(SkSVGTag t)
Definition: SkSVGFe.h:65
Definition: SkSVGFilterContext.h:21
Definition: SkSVGRenderContext.h:61
Definition: SkSVGTransformableNode.h:14
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
Definition: SkSVGFeGaussianBlur.h:16
SkSVGNumberType fX
Definition: SkSVGFeGaussianBlur.h:17
SkSVGNumberType fY
Definition: SkSVGFeGaussianBlur.h:18