Flutter Engine
The Flutter Engine
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
14
15class SK_API SkSVGFeComposite final : public SkSVGFe {
16public:
19 }
20
27
28protected:
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
38private:
40
41 static SkBlendMode BlendModeForOperator(SkSVGFeCompositeOperator);
42
43 using INHERITED = SkSVGFe;
44};
45
46#endif // SkSVGFeComposite_DEFINED
#define SK_API
Definition: SkAPI.h:35
SkBlendMode
Definition: SkBlendMode.h:38
#define INHERITED(method,...)
Definition: SkRecorder.cpp:128
SkSVGTag
Definition: SkSVGNode.h:23
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition: SkSVGNode.h:210
SkSVGFeCompositeOperator
Definition: SkSVGTypes.h:679
SkScalar SkSVGNumberType
Definition: SkSVGTypes.h:27
static sk_sp< SkSVGFeComposite > Make()
bool parseAndSetAttribute(const char *, const char *) override
Definition: SkSVGFe.cpp:93
SkSVGFe(SkSVGTag t)
Definition: SkSVGFe.h:67
Definition: ref_ptr.h:256