8 #ifndef SkDashPathEffect_DEFINED
9 #define SkDashPathEffect_DEFINED
11 #include "SkPathEffect.h"
41 #ifdef SK_SUPPORT_LEGACY_PATHEFFECT_PTR
42 static SkPathEffect* Create(
const SkScalar intervals[],
int count, SkScalar phase) {
43 return Make(intervals, count, phase).
release();
52 const SkRect*)
const override;
56 SK_TO_STRING_OVERRIDE()
59 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
60 bool exposedInAndroidJavaAPI()
const override {
return true; }
74 SkScalar fInitialDashLength;
75 int32_t fInitialDashIndex;
76 SkScalar fIntervalLength;
T *SK_WARN_UNUSED_RESULT release()
Return the bare pointer, and set the internal object pointer to nullptr.
Definition: SkRefCnt.h:363
Definition: SkPathEffect.h:119
SkDashPathEffect is a subclass of SkPathEffect that implements dashing.
Definition: SkDashPathEffect.h:17
The SkPath class encapsulates compound (multiple contour) geometric paths consisting of straight line...
Definition: SkPath.h:27
SkPathEffect is the base class for objects in the SkPaint that affect the geometry of a drawing primi...
Definition: SkPathEffect.h:29
DashType
If the PathEffect can be represented as a dash pattern, asADash will return kDash_DashType and None o...
Definition: SkPathEffect.h:114
Definition: SkStrokeRec.h:16
The SkMatrix class holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:26
Definition: SkRefCnt.h:135
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...
Definition: SkWriteBuffer.h:26
virtual bool asPoints(PointData *results, const SkPath &src, const SkStrokeRec &, const SkMatrix &, const SkRect *cullR) const
Does applying this path effect to 'src' yield a set of points? If so, optionally return the points in...
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
PointData aggregates all the information needed to draw the point primitives returned by an 'asPoints...
Definition: SkPathEffect.h:60