Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
SkSVGFeMorphology.cpp File Reference
#include "include/effects/SkImageFilters.h"
#include "modules/svg/include/SkSVGAttributeParser.h"
#include "modules/svg/include/SkSVGFeMorphology.h"
#include "modules/svg/include/SkSVGFilterContext.h"
#include "modules/svg/include/SkSVGRenderContext.h"
#include "modules/svg/include/SkSVGValue.h"

Go to the source code of this file.

Functions

template<>
bool SkSVGAttributeParser::parse< SkSVGFeMorphology::Operator > (SkSVGFeMorphology::Operator *op)
 
template<>
bool SkSVGAttributeParser::parse< SkSVGFeMorphology::Radius > (SkSVGFeMorphology::Radius *radius)
 

Function Documentation

◆ SkSVGAttributeParser::parse< SkSVGFeMorphology::Operator >()

Definition at line 42 of file SkSVGFeMorphology.cpp.

42 {
43 static constexpr std::tuple<const char*, SkSVGFeMorphology::Operator> gMap[] = {
46 };
47
48 return this->parseEnumMap(gMap, op) && this->parseEOSToken();
49}

◆ SkSVGAttributeParser::parse< SkSVGFeMorphology::Radius >()

Definition at line 52 of file SkSVGFeMorphology.cpp.

52 {
53 std::vector<SkSVGNumberType> values;
54 if (!this->parse(&values)) {
55 return false;
56 }
57
58 radius->fX = values[0];
59 radius->fY = values.size() > 1 ? values[1] : values[0];
60 return true;
61}
parse(repo_root, recipes_cfg_path)
Definition recipes.py:56