blob: 3625094abbdc64f4fcebab9b6d100c7f483b5f8e [file] [log] [blame]
Tyler Denniston8ed04432020-12-10 15:51:04 -05001/*
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
11#include "modules/svg/include/SkSVGFe.h"
12#include "modules/svg/include/SkSVGTypes.h"
13
14class SkSVGFeFlood : public SkSVGFe {
15public:
Tyler Denniston8ed04432020-12-10 15:51:04 -050016 static sk_sp<SkSVGFeFlood> Make() { return sk_sp<SkSVGFeFlood>(new SkSVGFeFlood()); }
17
18protected:
19 sk_sp<SkImageFilter> onMakeImageFilter(const SkSVGRenderContext&,
20 const SkSVGFilterContext&) const override;
21
Tyler Denniston62a683e2020-12-11 11:47:55 -050022 std::vector<SkSVGFeInputType> getInputs() const override { return {}; }
23
Tyler Denniston8ed04432020-12-10 15:51:04 -050024private:
25 SkSVGFeFlood() : INHERITED(SkSVGTag::kFeFlood) {}
26
27 SkColor resolveFloodColor(const SkSVGRenderContext&) const;
28
29 using INHERITED = SkSVGFe;
30};
31
Tyler Dennistonb2d1a3b2020-12-11 10:31:07 -050032#endif // SkSVGFeFlood_DEFINED