18 this->setIn2(SkSVGAttributeParser::parse<SkSVGFeInputType>(
"in2",
name,
value)) ||
19 this->setMode(SkSVGAttributeParser::parse<SkSVGFeBlend::Mode>(
"mode",
name,
value));
50bool SkSVGAttributeParser::parse<SkSVGFeBlend::Mode>(
52 static constexpr std::tuple<const char*, SkSVGFeBlend::Mode> gMap[] = {
60 return this->parseEnumMap(gMap,
mode) && this->parseEOSToken();
@ kLighten
rc = s + d - min(s*da, d*sa), ra = kSrcOver
@ kMultiply
r = s*(1-da) + d*(1-sa) + s*d
@ kSrcOver
r = s + (1-sa)*d
@ kDarken
rc = s + d - max(s*da, d*sa), ra = kSrcOver
static SkBlendMode GetBlendMode(SkSVGFeBlend::Mode mode)
static sk_sp< SkImageFilter > Blend(SkBlendMode mode, sk_sp< SkImageFilter > background, sk_sp< SkImageFilter > foreground=nullptr, const CropRect &cropRect={})
sk_sp< SkImageFilter > onMakeImageFilter(const SkSVGRenderContext &, const SkSVGFilterContext &) const override
bool parseAndSetAttribute(const char *, const char *) override
SkRect resolveFilterSubregion(const SkSVGRenderContext &, const SkSVGFilterContext &) const
bool parseAndSetAttribute(const char *, const char *) override
virtual SkSVGColorspace resolveColorspace(const SkSVGRenderContext &, const SkSVGFilterContext &) const
sk_sp< SkImageFilter > resolveInput(const SkSVGRenderContext &, const SkSVGFeInputType &) const
DEF_SWITCHES_START aot vmservice shared library name
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode