8 #ifndef SkDiscretePathEffect_DEFINED
9 #define SkDiscretePathEffect_DEFINED
11 #include "SkPathEffect.h"
34 #ifdef SK_SUPPORT_LEGACY_PATHEFFECT_PTR
35 static SkPathEffect* Create(SkScalar segLength, SkScalar deviation, uint32_t seedAssist = 0) {
36 return Make(segLength, deviation, seedAssist).
release();
43 SK_TO_STRING_OVERRIDE()
46 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
47 bool exposedInAndroidJavaAPI()
const override {
return true; }
57 SkScalar fSegLength, fPerterb;
T *SK_WARN_UNUSED_RESULT release()
Return the bare pointer, and set the internal object pointer to nullptr.
Definition: SkRefCnt.h:363
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
Definition: SkStrokeRec.h:16
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...
This path effect chops a path into discrete segments, and randomly displaces them.
Definition: SkDiscretePathEffect.h:17
Definition: SkWriteBuffer.h:26
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