Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / modules / svg / include / SkSVGFeFlood.h
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:
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
22     std::vector<SkSVGFeInputType> getInputs() const override { return {}; }
23
24 private:
25     SkSVGFeFlood() : INHERITED(SkSVGTag::kFeFlood) {}
26
27     SkColor resolveFloodColor(const SkSVGRenderContext&) const;
28
29     using INHERITED = SkSVGFe;
30 };
31
32 #endif  // SkSVGFeFlood_DEFINED