39 const float rx = opt_rx.
isValid()
42 const float ry = opt_ry.
isValid()
46 return std::make_tuple(opt_rx.
isValid() ? rx : ry,
54 this->setX(SkSVGAttributeParser::parse<SkSVGLength>(
"x", n, v)) ||
55 this->setY(SkSVGAttributeParser::parse<SkSVGLength>(
"y", n, v)) ||
56 this->setWidth(SkSVGAttributeParser::parse<SkSVGLength>(
"width", n, v)) ||
57 this->setHeight(SkSVGAttributeParser::parse<SkSVGLength>(
"height", n, v)) ||
58 this->setRx(SkSVGAttributeParser::parse<SkSVGLength>(
"rx", n, v)) ||
59 this->setRy(SkSVGAttributeParser::parse<SkSVGLength>(
"ry", n, v));
#define INHERITED(method,...)
std::tuple< float, float > ResolveOptionalRadii(const SkTLazy< SkSVGLength > &opt_rx, const SkTLazy< SkSVGLength > &opt_ry, const SkSVGLengthContext &lctx)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
static SkPath RRect(const SkRRect &, SkPathDirection dir=SkPathDirection::kCW)
static SkRRect MakeRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
SkRect resolveRect(const SkSVGLength &x, const SkSVGLength &y, const SkSVGLength &w, const SkSVGLength &h) const
SkScalar resolve(const SkSVGLength &, LengthType) const
virtual bool parseAndSetAttribute(const char *name, const char *value)
SkRect onObjectBoundingBox(const SkSVGRenderContext &) const override
bool parseAndSetAttribute(const char *, const char *) override
SkPath onAsPath(const SkSVGRenderContext &) const override
void onDraw(SkCanvas *, const SkSVGLengthContext &, const SkPaint &, SkPathFillType) const override
const SkSVGLengthContext & lengthContext() const
static float min(float r, float g, float b)
sk_sp< SkBlender > blender SkRect rect
constexpr std::array< std::array< float, 2 >, 2 > kRect
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path