Flutter Engine
The Flutter Engine
third_party
skia
modules
svg
include
SkSVGFeMerge.h
Go to the documentation of this file.
1
/*
2
* Copyright 2024 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 SkSVGFeMerge_DEFINED
9
#define SkSVGFeMerge_DEFINED
10
11
#include "
modules/svg/include/SkSVGFe.h
"
12
#include "
modules/svg/include/SkSVGHiddenContainer.h
"
13
#include "
modules/svg/include/SkSVGNode.h
"
14
#include "
modules/svg/include/SkSVGTypes.h
"
15
16
// https://www.w3.org/TR/SVG11/filters.html#feMergeNodeElement
17
class
SK_API
SkSVGFeMergeNode
:
public
SkSVGHiddenContainer
{
18
public
:
19
static
constexpr
SkSVGTag
tag =
SkSVGTag::kFeMergeNode
;
20
21
static
sk_sp<SkSVGFeMergeNode>
Make
() {
22
return
sk_sp<SkSVGFeMergeNode>
(
new
SkSVGFeMergeNode
());
23
}
24
25
SVG_ATTR
(In,
SkSVGFeInputType
,
SkSVGFeInputType
())
26
27
protected:
28
bool
parseAndSetAttribute(const
char
*, const
char
*) override;
29
30
private:
31
SkSVGFeMergeNode
() :
INHERITED
(tag) {}
32
33
using
INHERITED
=
SkSVGHiddenContainer
;
34
};
35
36
// https://www.w3.org/TR/SVG11/filters.html#feMergeElement
37
class
SK_API
SkSVGFeMerge
:
public
SkSVGFe
{
38
public
:
39
static
constexpr
SkSVGTag
tag =
SkSVGTag::kFeMerge
;
40
41
static
sk_sp<SkSVGFeMerge>
Make
() {
return
sk_sp<SkSVGFeMerge>
(
new
SkSVGFeMerge
()); }
42
43
protected
:
44
sk_sp<SkImageFilter>
onMakeImageFilter(
const
SkSVGRenderContext
&,
45
const
SkSVGFilterContext
&)
const override
;
46
47
std::vector<SkSVGFeInputType> getInputs()
const override
;
48
49
private
:
50
SkSVGFeMerge
() :
INHERITED
(tag) {}
51
52
using
INHERITED
=
SkSVGFe
;
53
};
54
55
#endif
// SkSVGFeMerge_DEFINED
SK_API
#define SK_API
Definition:
SkAPI.h:35
INHERITED
#define INHERITED(method,...)
Definition:
SkRecorder.cpp:128
SkSVGFe.h
SkSVGHiddenContainer.h
SkSVGNode.h
SkSVGTag
SkSVGTag
Definition:
SkSVGNode.h:23
SkSVGTag::kFeMergeNode
@ kFeMergeNode
SkSVGTag::kFeMerge
@ kFeMerge
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:210
SkSVGTypes.h
SkSVGFeInputType
Definition:
SkSVGTypes.h:635
SkSVGFeMergeNode
Definition:
SkSVGFeMerge.h:17
SkSVGFeMergeNode::Make
static sk_sp< SkSVGFeMergeNode > Make()
Definition:
SkSVGFeMerge.h:21
SkSVGFeMerge
Definition:
SkSVGFeMerge.h:37
SkSVGFeMerge::Make
static sk_sp< SkSVGFeMerge > Make()
Definition:
SkSVGFeMerge.h:41
SkSVGFe
Definition:
SkSVGFe.h:18
SkSVGFilterContext
Definition:
SkSVGFilterContext.h:21
SkSVGHiddenContainer
Definition:
SkSVGHiddenContainer.h:13
SkSVGHiddenContainer::SkSVGHiddenContainer
SkSVGHiddenContainer(SkSVGTag t)
Definition:
SkSVGHiddenContainer.h:15
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:63
sk_sp
Definition:
SkRefCnt.h:220
Generated on Sun Jun 23 2024 21:56:07 for Flutter Engine by
1.9.4