Flutter Engine
The Flutter Engine
third_party
skia
modules
svg
include
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
11
#include "
modules/svg/include/SkSVGFe.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
14
class
SK_API
SkSVGFeGaussianBlur
:
public
SkSVGFe
{
15
public
:
16
struct
StdDeviation
{
17
SkSVGNumberType
fX
;
18
SkSVGNumberType
fY
;
19
};
20
21
static
sk_sp<SkSVGFeGaussianBlur>
Make
() {
22
return
sk_sp<SkSVGFeGaussianBlur>
(
new
SkSVGFeGaussianBlur
());
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
:
36
SkSVGFeGaussianBlur
() :
INHERITED
(
SkSVGTag
::
kFeGaussianBlur
) {}
37
38
using
INHERITED
=
SkSVGFe
;
39
};
40
41
#endif
// SkSVGFeGaussianBlur_DEFINED
SK_API
#define SK_API
Definition:
SkAPI.h:35
INHERITED
#define INHERITED(method,...)
Definition:
SkRecorder.cpp:128
SkSVGFe.h
SkSVGTag
SkSVGTag
Definition:
SkSVGNode.h:23
SkSVGTag::kFeGaussianBlur
@ kFeGaussianBlur
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:210
SkSVGTypes.h
SkSVGNumberType
SkScalar SkSVGNumberType
Definition:
SkSVGTypes.h:27
SkImageFilter
Definition:
SkImageFilter.h:35
SkSVGFeGaussianBlur
Definition:
SkSVGFeGaussianBlur.h:14
SkSVGFeGaussianBlur::Make
static sk_sp< SkSVGFeGaussianBlur > Make()
Definition:
SkSVGFeGaussianBlur.h:21
SkSVGFeInputType
Definition:
SkSVGTypes.h:635
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
std
Definition:
ref_ptr.h:256
SkSVGFeGaussianBlur::StdDeviation
Definition:
SkSVGFeGaussianBlur.h:16
SkSVGFeGaussianBlur::StdDeviation::fX
SkSVGNumberType fX
Definition:
SkSVGFeGaussianBlur.h:17
SkSVGFeGaussianBlur::StdDeviation::fY
SkSVGNumberType fY
Definition:
SkSVGFeGaussianBlur.h:18
Generated on Sun Jun 23 2024 21:56:07 for Flutter Engine by
1.9.4