17 this->setGradientTransform(SkSVGAttributeParser::parse<SkSVGTransformType>(
19 this->setHref(SkSVGAttributeParser::parse<SkSVGIRI>(
"xlink:href",
name,
value)) ||
20 this->setSpreadMethod(
21 SkSVGAttributeParser::parse<SkSVGSpreadMethod>(
"spreadMethod",
name,
value)) ||
22 this->setGradientUnits(SkSVGAttributeParser::parse<SkSVGObjectBoundingBoxUnits>(
28 StopPositionArray*
pos,
29 StopColorArray*
colors)
const {
33 this->forEachChild<SkSVGStop>([&](
const SkSVGStop* stop) {
34 colors->push_back(this->resolveStopColor(ctx, *stop));
42 if (
pos->empty() && !fHref.iri().isEmpty()) {
53 const auto& stopColor = stop.getStopColor();
54 const auto& stopOpacity = stop.getStopOpacity();
56 if (!stopColor.isValue() || !stopOpacity.isValue()) {
57 SkDebugf(
"unhandled: stop-color or stop-opacity has no value\n");
70 this->collectColorStops(ctx, &
pos, &
colors);
84 const auto tileMode =
static_cast<SkTileMode>(fSpreadMethod.type());
108 bool parsedValue =
false;
110 if (this->parseExpectedStringToken(gSpreadInfo[
i].
fName)) {
117 return parsedValue && this->parseEOSToken();
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static constexpr const T & SkTPin(const T &x, const T &lo, const T &hi)
static SkMatrix Scale(SkScalar sx, SkScalar sy)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
bool parse(SkSVGIntegerType *v)
virtual sk_sp< SkShader > onMakeShader(const SkSVGRenderContext &, const SkColor4f *, const SkScalar *, int count, SkTileMode, const SkMatrix &localMatrix) const =0
bool onAsPaint(const SkSVGRenderContext &, SkPaint *) const final
bool parseAndSetAttribute(const char *, const char *) override
virtual bool parseAndSetAttribute(const char *name, const char *value)
SkSVGColorType resolveSvgColor(const SkSVGColor &) const
OBBTransform transformForCurrentOBB(SkSVGObjectBoundingBoxUnits) const
BorrowedNode findNodeById(const SkSVGIRI &) const
constexpr SkColor4f kBlack
PODArray< SkColor > colors
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 keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
static constexpr SkSize Make(SkScalar w, SkScalar h)