/* * 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 SkSVGFeGaussianBlur_DEFINED #define SkSVGFeGaussianBlur_DEFINED #include "modules/svg/include/SkSVGFe.h" #include "modules/svg/include/SkSVGTypes.h" class SkSVGFeGaussianBlur : public SkSVGFe { public: struct StdDeviation { SkSVGNumberType fX; SkSVGNumberType fY; }; static sk_sp Make() { return sk_sp(new SkSVGFeGaussianBlur()); } SVG_ATTR(StdDeviation, StdDeviation, StdDeviation({0, 0})) protected: sk_sp onMakeImageFilter(const SkSVGRenderContext&, const SkSVGFilterContext&) const override; std::vector getInputs() const override { return {this->getIn()}; } bool parseAndSetAttribute(const char*, const char*) override; private: SkSVGFeGaussianBlur() : INHERITED(SkSVGTag::kFeGaussianBlur) {} using INHERITED = SkSVGFe; }; #endif // SkSVGFeGaussianBlur_DEFINED