2 * Copyright 2020 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef SkSVGFeFlood_DEFINED
9 #define SkSVGFeFlood_DEFINED
11 #include "modules/svg/include/SkSVGFe.h"
12 #include "modules/svg/include/SkSVGTypes.h"
14 class SkSVGFeFlood : public SkSVGFe {
16 static sk_sp<SkSVGFeFlood> Make() { return sk_sp<SkSVGFeFlood>(new SkSVGFeFlood()); }
19 sk_sp<SkImageFilter> onMakeImageFilter(const SkSVGRenderContext&,
20 const SkSVGFilterContext&) const override;
22 std::vector<SkSVGFeInputType> getInputs() const override { return {}; }
25 SkSVGFeFlood() : INHERITED(SkSVGTag::kFeFlood) {}
27 SkColor resolveFloodColor(const SkSVGRenderContext&) const;
29 using INHERITED = SkSVGFe;
32 #endif // SkSVGFeFlood_DEFINED