8 #ifndef SkSGPaint_DEFINED
9 #define SkSGPaint_DEFINED
18 class AnimationBuilder;
52 bool fAntiAlias =
false;
SkBlendMode
Blends are operators that take in two colors (source, destination) and return a new color.
Definition: SkBlendMode.h:38
@ kSrcOver
r = s + (1-sa)*d
Types, consts, functions, and macros for colors.
uint32_t SkColor
32-bit ARGB color value, unpremultiplied.
Definition: SkColor.h:37
#define SG_ATTRIBUTE(attr_name, attr_type, attr_container)
Definition: SkSGNode.h:99
float SkScalar
Definition: SkScalar.h:14
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
SkPaint controls options applied when drawing.
Definition: SkPaint.h:44
Cap
Definition: SkPaint.h:333
@ kButt_Cap
no stroke extension
Definition: SkPaint.h:334
Style
Definition: SkPaint.h:192
@ kFill_Style
set to fill geometry
Definition: SkPaint.h:193
Join
Definition: SkPaint.h:358
@ kMiter_Join
extends to miter limit
Definition: SkPaint.h:359
Definition: SkRefCnt.h:119
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
Concrete Paint node, wrapping an SkColor.
Definition: SkSGPaint.h:64
static sk_sp< Color > Make(SkColor c)
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
friend class skottie::internal::AnimationBuilder
Definition: SkSGPaint.h:80
void onApplyToPaint(SkPaint *) const override
Receiver for invalidation events.
Definition: SkSGInvalidationController.h:25
Base class for all scene graph nodes.
Definition: SkSGNode.h:32
Node(uint32_t invalTraits)
Base class for nodes which provide a 'paint' (as opposed to geometry) for drawing (e....
Definition: SkSGPaint.h:30
SkPaint makePaint() const
virtual void onApplyToPaint(SkPaint *) const =0
Shader-based paint.
Definition: SkSGPaint.h:86
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
static sk_sp< ShaderPaint > Make(sk_sp< Shader >)
void onApplyToPaint(SkPaint *) const override
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582