Flutter Engine
The Flutter Engine
SkSVGFeFlood.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 SkSVGFeFlood_DEFINED
9#define SkSVGFeFlood_DEFINED
10
13
14class SK_API SkSVGFeFlood : public SkSVGFe {
15public:
17
18protected:
20 const SkSVGFilterContext&) const override;
21
22 std::vector<SkSVGFeInputType> getInputs() const override { return {}; }
23
24private:
26
27 SkColor resolveFloodColor(const SkSVGRenderContext&) const;
28
29 using INHERITED = SkSVGFe;
30};
31
32#endif // SkSVGFeFlood_DEFINED
#define SK_API
Definition: SkAPI.h:35
uint32_t SkColor
Definition: SkColor.h:37
#define INHERITED(method,...)
Definition: SkRecorder.cpp:128
SkSVGTag
Definition: SkSVGNode.h:23
std::vector< SkSVGFeInputType > getInputs() const override
Definition: SkSVGFeFlood.h:22
static sk_sp< SkSVGFeFlood > Make()
Definition: SkSVGFeFlood.h:16
SkSVGFe(SkSVGTag t)
Definition: SkSVGFe.h:67
virtual sk_sp< SkImageFilter > onMakeImageFilter(const SkSVGRenderContext &, const SkSVGFilterContext &) const =0