8#ifndef SkSGGradient_DEFINED
9#define SkSGGradient_DEFINED
39 SG_ATTRIBUTE(ColorStops, std::vector<ColorStop>, fColorStops)
69 const std::vector<SkScalar >&)
const override;
93 const std::vector<SkScalar >&)
const override;
#define INHERITED(method,...)
#define SG_ATTRIBUTE(attr_name, attr_type, attr_container)
virtual sk_sp< SkShader > onMakeShader(const std::vector< SkColor4f > &colors, const std::vector< SkScalar > &positions) const =0
sk_sp< SkShader > onRevalidateShader() final
static sk_sp< LinearGradient > Make()
static sk_sp< RadialGradient > Make()
static constexpr SkPoint Make(float x, float y)
bool operator==(const ColorStop &other) const