Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
modules
svg
include
SkSVGFeDisplacementMap.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 SkSVGFeDisplacementMap_DEFINED
9
#define SkSVGFeDisplacementMap_DEFINED
10
11
#include "
modules/svg/include/SkSVGFe.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
14
class
SK_API
SkSVGFeDisplacementMap
:
public
SkSVGFe
{
15
public
:
16
using
ChannelSelector
=
SkColorChannel
;
17
18
static
sk_sp<SkSVGFeDisplacementMap>
Make
() {
19
return
sk_sp<SkSVGFeDisplacementMap>
(
new
SkSVGFeDisplacementMap
());
20
}
21
22
SkSVGColorspace
resolveColorspace
(
const
SkSVGRenderContext
&,
23
const
SkSVGFilterContext
&)
const
final
;
24
25
SVG_ATTR
(In2 ,
SkSVGFeInputType
,
SkSVGFeInputType
())
26
SVG_ATTR
(XChannelSelector, ChannelSelector , ChannelSelector::
kA
)
27
SVG_ATTR
(YChannelSelector, ChannelSelector , ChannelSelector::
kA
)
28
SVG_ATTR
(
Scale
,
SkSVGNumberType
,
SkSVGNumberType
(0))
29
30
protected:
31
sk_sp
<
SkImageFilter
> onMakeImageFilter(const
SkSVGRenderContext
&,
32
const
SkSVGFilterContext
&) const override;
33
34
std
::vector<
SkSVGFeInputType
> getInputs()
const override
{
35
return
{this->getIn(), this->getIn2()};
36
}
37
38
bool
parseAndSetAttribute
(
const
char
*,
const
char
*)
override
;
39
40
private
:
41
SkSVGFeDisplacementMap
() :
INHERITED
(
SkSVGTag
::
kFeDisplacementMap
) {}
42
43
using
INHERITED
=
SkSVGFe
;
44
};
45
46
#endif
// SkSVGFeDisplacementMap_DEFINED
SK_API
#define SK_API
Definition
SkAPI.h:35
SkColorChannel
SkColorChannel
Definition
SkColor.h:228
SkColorChannel::kA
@ kA
INHERITED
#define INHERITED(method,...)
Definition
SkRecorder.cpp:128
SkSVGFe.h
SkSVGTag
SkSVGTag
Definition
SkSVGNode.h:23
SkSVGTag::kFeDisplacementMap
@ kFeDisplacementMap
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition
SkSVGNode.h:203
SkSVGTypes.h
SkSVGColorspace
SkSVGColorspace
Definition
SkSVGTypes.h:719
SkSVGNumberType
SkScalar SkSVGNumberType
Definition
SkSVGTypes.h:27
SkImageFilter
Definition
SkImageFilter.h:35
SkSVGFeDisplacementMap
Definition
SkSVGFeDisplacementMap.h:14
SkSVGFeDisplacementMap::Make
static sk_sp< SkSVGFeDisplacementMap > Make()
Definition
SkSVGFeDisplacementMap.h:18
SkSVGFeInputType
Definition
SkSVGTypes.h:635
SkSVGFe
Definition
SkSVGFe.h:18
SkSVGFe::parseAndSetAttribute
bool parseAndSetAttribute(const char *, const char *) override
Definition
SkSVGFe.cpp:93
SkSVGFe::resolveColorspace
virtual SkSVGColorspace resolveColorspace(const SkSVGRenderContext &, const SkSVGFilterContext &) const
Definition
SkSVGFe.cpp:84
SkSVGFilterContext
Definition
SkSVGFilterContext.h:21
SkSVGRenderContext
Definition
SkSVGRenderContext.h:63
sk_sp
Definition
SkRefCnt.h:220
Scale
Definition
dart.idl:629
std
Definition
ref_ptr.h:256
Generated on Fri Apr 26 2024 06:16:26 for Flutter Engine by
1.9.8