Flutter Engine
The Flutter Engine
third_party
skia
modules
svg
include
SkSVGFeComposite.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 SkSVGFeComposite_DEFINED
9
#define SkSVGFeComposite_DEFINED
10
11
#include "
include/core/SkBlendMode.h
"
12
#include "
modules/svg/include/SkSVGFe.h
"
13
#include "
modules/svg/include/SkSVGTypes.h
"
14
15
class
SK_API
SkSVGFeComposite
final :
public
SkSVGFe
{
16
public
:
17
static
sk_sp<SkSVGFeComposite>
Make
() {
18
return
sk_sp<SkSVGFeComposite>
(
new
SkSVGFeComposite
());
19
}
20
21
SVG_ATTR
(In2,
SkSVGFeInputType
,
SkSVGFeInputType
())
22
SVG_ATTR
(K1,
SkSVGNumberType
,
SkSVGNumberType
(0))
23
SVG_ATTR
(K2,
SkSVGNumberType
,
SkSVGNumberType
(0))
24
SVG_ATTR
(K3,
SkSVGNumberType
,
SkSVGNumberType
(0))
25
SVG_ATTR
(K4,
SkSVGNumberType
,
SkSVGNumberType
(0))
26
SVG_ATTR
(Operator,
SkSVGFeCompositeOperator
,
SkSVGFeCompositeOperator
::
kOver
)
27
28
protected:
29
sk_sp
<
SkImageFilter
> onMakeImageFilter(const
SkSVGRenderContext
&,
30
const
SkSVGFilterContext
&) const override;
31
32
std
::vector<
SkSVGFeInputType
> getInputs()
const override
{
33
return
{this->getIn(), this->getIn2()};
34
}
35
36
bool
parseAndSetAttribute
(
const
char
*,
const
char
*)
override
;
37
38
private
:
39
SkSVGFeComposite
() :
INHERITED
(
SkSVGTag
::
kFeComposite
) {}
40
41
static
SkBlendMode
BlendModeForOperator(
SkSVGFeCompositeOperator
);
42
43
using
INHERITED
=
SkSVGFe
;
44
};
45
46
#endif
// SkSVGFeComposite_DEFINED
SK_API
#define SK_API
Definition:
SkAPI.h:35
SkBlendMode.h
SkBlendMode
SkBlendMode
Definition:
SkBlendMode.h:38
INHERITED
#define INHERITED(method,...)
Definition:
SkRecorder.cpp:128
SkSVGFe.h
SkSVGTag
SkSVGTag
Definition:
SkSVGNode.h:23
SkSVGTag::kFeComposite
@ kFeComposite
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:210
SkSVGTypes.h
SkSVGFeCompositeOperator
SkSVGFeCompositeOperator
Definition:
SkSVGTypes.h:679
SkSVGFeCompositeOperator::kOver
@ kOver
SkSVGNumberType
SkScalar SkSVGNumberType
Definition:
SkSVGTypes.h:27
SkImageFilter
Definition:
SkImageFilter.h:35
SkSVGFeComposite
Definition:
SkSVGFeComposite.h:15
SkSVGFeComposite::Make
static sk_sp< SkSVGFeComposite > Make()
Definition:
SkSVGFeComposite.h:17
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
Generated on Sun Jun 23 2024 21:56:07 for Flutter Engine by
1.9.4