8 #ifndef SkSVGGradient_DEFINED
9 #define SkSVGGradient_DEFINED
40 using StopPositionArray = skia_private::STArray<2, SkScalar , true>;
41 using StopColorArray = skia_private::STArray<2, SkColor4f, true>;
42 void collectColorStops(
const SkSVGRenderContext&, StopPositionArray*, StopColorArray*)
const;
SkSVGTag
Definition: SkSVGNode.h:23
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition: SkSVGNode.h:203
float SkScalar
Definition: SkScalar.h:14
SkTileMode
Definition: SkTileMode.h:13
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
SkPaint controls options applied when drawing.
Definition: SkPaint.h:44
Definition: SkSVGGradient.h:19
bool onAsPaint(const SkSVGRenderContext &, SkPaint *) const final
bool parseAndSetAttribute(const char *, const char *) override
virtual sk_sp< SkShader > onMakeShader(const SkSVGRenderContext &, const SkColor4f *, const SkScalar *, int count, SkTileMode, const SkMatrix &localMatrix) const =0
Definition: SkSVGHiddenContainer.h:13
SkSVGHiddenContainer(SkSVGTag t)
Definition: SkSVGHiddenContainer.h:15
Definition: SkSVGTypes.h:152
Definition: SkSVGTypes.h:454
Definition: SkSVGRenderContext.h:61
Definition: SkSVGTypes.h:318
Definition: SkSVGStop.h:16
RGBA color value, holding four floating point components.