Skia
2D Graphics Library
SkSVGFeTurbulence.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 SkSVGFeTurbulence_DEFINED
9 #define SkSVGFeTurbulence_DEFINED
10 
13 
14 class SK_API SkSVGFeTurbulence : public SkSVGFe {
15 public:
18  }
19 
23  SVG_ATTR(TurbulenceType,
25  SkSVGFeTurbulenceType(SkSVGFeTurbulenceType::Type::kTurbulence))
26 
27 protected:
28  sk_sp<SkImageFilter> onMakeImageFilter(const SkSVGRenderContext&,
29  const SkSVGFilterContext&) const override;
30 
31  std::vector<SkSVGFeInputType> getInputs() const override { return {}; }
32 
33  bool parseAndSetAttribute(const char*, const char*) override;
34 private:
36 
37  using INHERITED = SkSVGFe;
38 };
39 
40 #endif // SkSVGFeTurbulence_DEFINED
SkSVGTag
Definition: SkSVGNode.h:23
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition: SkSVGNode.h:203
SkScalar SkSVGNumberType
Definition: SkSVGTypes.h:27
int SkSVGIntegerType
Definition: SkSVGTypes.h:26
Base class for image filters.
Definition: SkImageFilter.h:35
Definition: SkSVGTypes.h:635
Definition: SkSVGTypes.h:688
Definition: SkSVGFeTurbulence.h:14
bool parseAndSetAttribute(const char *, const char *) override
static sk_sp< SkSVGFeTurbulence > Make()
Definition: SkSVGFeTurbulence.h:16
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: SkSVGTypes.h:702