28 paint.setAntiAlias(fAntiAlias);
29 paint.setBlendMode(fBlendMode);
30 paint.setStyle(fStyle);
31 paint.setStrokeWidth(fStrokeWidth);
32 paint.setStrokeMiter(fStrokeMiter);
33 paint.setStrokeJoin(fStrokeJoin);
34 paint.setStrokeCap(fStrokeCap);
48Color::Color(
SkColor c) : fColor(c) {}
57 paint->setColor(fColor);
66 : fShader(
std::move(
sh)) {
77 return fShader->revalidate(ic, ctm);
81 paint->setShader(fShader->getShader());
#define SkScalarRoundToInt(x)
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
void onApplyToPaint(SkPaint *) const override
static sk_sp< Color > Make(SkColor c)
void observeInval(const sk_sp< Node > &)
void unobserveInval(const sk_sp< Node > &)
SkPaint makePaint() const
virtual void onApplyToPaint(SkPaint *) const =0
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
static sk_sp< ShaderPaint > Make(sk_sp< Shader >)
void onApplyToPaint(SkPaint *) const override
static constexpr SkRect MakeEmpty()