Tyler Denniston | 8ed0443 | 2020-12-10 15:51:04 -0500 | [diff] [blame] | 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 | |
| 11 | #include "modules/svg/include/SkSVGFe.h" |
| 12 | #include "modules/svg/include/SkSVGTypes.h" |
| 13 | |
| 14 | class SkSVGFeFlood : public SkSVGFe { |
| 15 | public: |
Tyler Denniston | 8ed0443 | 2020-12-10 15:51:04 -0500 | [diff] [blame] | 16 | static sk_sp<SkSVGFeFlood> Make() { return sk_sp<SkSVGFeFlood>(new SkSVGFeFlood()); } |
| 17 | |
| 18 | protected: |
| 19 | sk_sp<SkImageFilter> onMakeImageFilter(const SkSVGRenderContext&, |
| 20 | const SkSVGFilterContext&) const override; |
| 21 | |
Tyler Denniston | 62a683e | 2020-12-11 11:47:55 -0500 | [diff] [blame] | 22 | std::vector<SkSVGFeInputType> getInputs() const override { return {}; } |
| 23 | |
Tyler Denniston | 8ed0443 | 2020-12-10 15:51:04 -0500 | [diff] [blame] | 24 | private: |
| 25 | SkSVGFeFlood() : INHERITED(SkSVGTag::kFeFlood) {} |
| 26 | |
| 27 | SkColor resolveFloodColor(const SkSVGRenderContext&) const; |
| 28 | |
| 29 | using INHERITED = SkSVGFe; |
| 30 | }; |
| 31 | |
Tyler Denniston | b2d1a3b | 2020-12-11 10:31:07 -0500 | [diff] [blame] | 32 | #endif // SkSVGFeFlood_DEFINED |