2020-12-10 20:51:04 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2020 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SkSVGFeFlood_DEFINED
|
|
|
|
#define SkSVGFeFlood_DEFINED
|
|
|
|
|
|
|
|
#include "modules/svg/include/SkSVGFe.h"
|
|
|
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
|
|
|
|
|
|
class SkSVGFeFlood : public SkSVGFe {
|
|
|
|
public:
|
|
|
|
static sk_sp<SkSVGFeFlood> Make() { return sk_sp<SkSVGFeFlood>(new SkSVGFeFlood()); }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
sk_sp<SkImageFilter> onMakeImageFilter(const SkSVGRenderContext&,
|
|
|
|
const SkSVGFilterContext&) const override;
|
|
|
|
|
2020-12-11 16:47:55 +00:00
|
|
|
std::vector<SkSVGFeInputType> getInputs() const override { return {}; }
|
|
|
|
|
2020-12-10 20:51:04 +00:00
|
|
|
private:
|
|
|
|
SkSVGFeFlood() : INHERITED(SkSVGTag::kFeFlood) {}
|
|
|
|
|
|
|
|
SkColor resolveFloodColor(const SkSVGRenderContext&) const;
|
|
|
|
|
|
|
|
using INHERITED = SkSVGFe;
|
|
|
|
};
|
|
|
|
|
2020-12-11 15:31:07 +00:00
|
|
|
#endif // SkSVGFeFlood_DEFINED
|