Flutter Engine
The Flutter Engine
third_party
skia
modules
svg
include
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
11
#include "
modules/svg/include/SkSVGFe.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
14
class
SK_API
SkSVGFeTurbulence
:
public
SkSVGFe
{
15
public
:
16
static
sk_sp<SkSVGFeTurbulence>
Make
() {
17
return
sk_sp<SkSVGFeTurbulence>
(
new
SkSVGFeTurbulence
());
18
}
19
20
SVG_ATTR
(BaseFrequency,
SkSVGFeTurbulenceBaseFrequency
,
SkSVGFeTurbulenceBaseFrequency
({}))
21
SVG_ATTR
(NumOctaves,
SkSVGIntegerType
,
SkSVGIntegerType
(1))
22
SVG_ATTR
(Seed,
SkSVGNumberType
,
SkSVGNumberType
(0))
23
SVG_ATTR
(TurbulenceType,
24
SkSVGFeTurbulenceType
,
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
:
35
SkSVGFeTurbulence
() :
INHERITED
(
SkSVGTag
::
kFeTurbulence
) {}
36
37
using
INHERITED
=
SkSVGFe
;
38
};
39
40
#endif
// SkSVGFeTurbulence_DEFINED
SK_API
#define SK_API
Definition:
SkAPI.h:35
SkPerlinNoiseShaderType::kTurbulence
@ kTurbulence
INHERITED
#define INHERITED(method,...)
Definition:
SkRecorder.cpp:128
SkSVGFe.h
SkSVGTag
SkSVGTag
Definition:
SkSVGNode.h:23
SkSVGTag::kFeTurbulence
@ kFeTurbulence
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:210
SkSVGTypes.h
SkSVGNumberType
SkScalar SkSVGNumberType
Definition:
SkSVGTypes.h:27
SkSVGIntegerType
int SkSVGIntegerType
Definition:
SkSVGTypes.h:26
SkImageFilter
Definition:
SkImageFilter.h:35
SkSVGFeInputType
Definition:
SkSVGTypes.h:635
SkSVGFeTurbulenceBaseFrequency
Definition:
SkSVGTypes.h:688
SkSVGFeTurbulence
Definition:
SkSVGFeTurbulence.h:14
SkSVGFeTurbulence::Make
static sk_sp< SkSVGFeTurbulence > Make()
Definition:
SkSVGFeTurbulence.h:16
SkSVGFe
Definition:
SkSVGFe.h:18
SkSVGFe::parseAndSetAttribute
bool parseAndSetAttribute(const char *, const char *) override
Definition:
SkSVGFe.cpp:93
SkSVGFe::SkSVGFe
SkSVGFe(SkSVGTag t)
Definition:
SkSVGFe.h:67
SkSVGFilterContext
Definition:
SkSVGFilterContext.h:21
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:63
sk_sp
Definition:
SkRefCnt.h:220
Type
Definition:
asyncrescaleandread.cpp:530
std
Definition:
ref_ptr.h:256
SkSVGFeTurbulenceType
Definition:
SkSVGTypes.h:702
Generated on Sun Jun 23 2024 21:56:07 for Flutter Engine by
1.9.4