Flutter Engine
The Flutter Engine
SkSVGFeOffset.cpp
Go to the documentation of this file.
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
14
15bool SkSVGFeOffset::parseAndSetAttribute(const char* name, const char* value) {
17 this->setDx(SkSVGAttributeParser::parse<SkSVGNumberType>("dx", name, value)) ||
18 this->setDy(SkSVGAttributeParser::parse<SkSVGNumberType>("dy", name, value));
19}
20
22 const SkSVGFilterContext& fctx) const {
23 const auto d = SkV2{this->getDx(), this->getDy()}
25
27 fctx.resolveInput(ctx, this->getIn(), this->resolveColorspace(ctx, fctx));
28 return SkImageFilters::Offset(d.x, d.y, std::move(in), this->resolveFilterSubregion(ctx, fctx));
29}
static sk_sp< SkImageFilter > Offset(SkScalar dx, SkScalar dy, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
bool parseAndSetAttribute(const char *, const char *) override
sk_sp< SkImageFilter > onMakeImageFilter(const SkSVGRenderContext &, const SkSVGFilterContext &) const override
bool parseAndSetAttribute(const char *, const char *) override
Definition: SkSVGFe.cpp:93
virtual SkSVGColorspace resolveColorspace(const SkSVGRenderContext &, const SkSVGFilterContext &) const
Definition: SkSVGFe.cpp:84
sk_sp< SkImageFilter > resolveInput(const SkSVGRenderContext &, const SkSVGFeInputType &) const
const SkSVGObjectBoundingBoxUnits & primitiveUnits() const
OBBTransform transformForCurrentOBB(SkSVGObjectBoundingBoxUnits) const
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19
uint8_t value
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32
Definition: SkM44.h:19