Flutter Engine
The Flutter Engine
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
13
15public:
17
20 }
21
23 const SkSVGFilterContext&) const final;
24
26 SVG_ATTR(XChannelSelector, ChannelSelector , ChannelSelector::kA)
27 SVG_ATTR(YChannelSelector, ChannelSelector , ChannelSelector::kA)
29
30protected:
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
40private:
42
43 using INHERITED = SkSVGFe;
44};
45
46#endif // SkSVGFeDisplacementMap_DEFINED
#define SK_API
Definition: SkAPI.h:35
SkColorChannel
Definition: SkColor.h:228
#define INHERITED(method,...)
Definition: SkRecorder.cpp:128
SkSVGTag
Definition: SkSVGNode.h:23
@ kFeDisplacementMap
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition: SkSVGNode.h:210
SkSVGColorspace
Definition: SkSVGTypes.h:719
SkScalar SkSVGNumberType
Definition: SkSVGTypes.h:27
static sk_sp< SkSVGFeDisplacementMap > Make()
bool parseAndSetAttribute(const char *, const char *) override
Definition: SkSVGFe.cpp:93
virtual SkSVGColorspace resolveColorspace(const SkSVGRenderContext &, const SkSVGFilterContext &) const
Definition: SkSVGFe.cpp:84
SkSVGFe(SkSVGTag t)
Definition: SkSVGFe.h:67
Definition: dart.idl:629
Definition: ref_ptr.h:256