8 #ifndef Sk2DPathEffect_DEFINED
9 #define Sk2DPathEffect_DEFINED
12 #include "SkPathEffect.h"
26 virtual void begin(
const SkIRect& uvBounds,
SkPath* dst)
const;
27 virtual void next(
const SkPoint& loc,
int u,
int v,
SkPath* dst)
const;
28 virtual void end(
SkPath* dst)
const;
34 virtual void nextSpan(
int u,
int v,
int ucount,
SkPath* dst)
const;
36 const SkMatrix& getMatrix()
const {
return fMatrix; }
42 SK_TO_STRING_OVERRIDE()
46 bool fMatrixIsInvertible;
52 friend class Sk2DPathEffectBlitter;
65 SK_TO_STRING_OVERRIDE()
91 SK_TO_STRING_OVERRIDE()
98 void next(const
SkPoint&,
int u,
int v, SkPath*) const override;
bool filterPath(SkPath *, const SkPath &, SkStrokeRec *, const SkRect *) const override
Given a src path (input) and a stroke-rec (input and output), apply this effect to the src path...
The SkPath class encapsulates compound (multiple contour) geometric paths consisting of straight line...
Definition: SkPath.h:25
SkPathEffect is the base class for objects in the SkPaint that affect the geometry of a drawing primi...
Definition: SkPathEffect.h:27
Definition: Sk2DPathEffect.h:56
Definition: SkStrokeRec.h:16
Definition: SkPoint.h:156
The SkMatrix class holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:28
Definition: SkRefCnt.h:125
Definition: Sk2DPathEffect.h:15
virtual bool filterPath(SkPath *dst, const SkPath &src, SkStrokeRec *, const SkRect *cullR) const =0
Given a src path (input) and a stroke-rec (input and output), apply this effect to the src path...
void flatten(SkWriteBuffer &) const override
Override this if your subclass needs to record data that it will need to recreate itself from its Cre...
virtual void nextSpan(int u, int v, int ucount, SkPath *dst) const
Low-level virtual called per span of locations in the u-direction.
Definition: SkWriteBuffer.h:27
Definition: Sk2DPathEffect.h:81
virtual void flatten(SkWriteBuffer &) const
Override this if your subclass needs to record data that it will need to recreate itself from its Cre...
Definition: SkFlattenable.h:117
static sk_sp< SkPathEffect > Make(const SkMatrix &matrix, const SkPath &path)
Stamp the specified path to fill the shape, using the matrix to define the latice.
Definition: Sk2DPathEffect.h:87
SkIRect holds four 32 bit integer coordinates for a rectangle.
Definition: SkRect.h:20