Lines Matching refs:SkPathRef
52 * modify the contents. To modify or append to the verbs/points wrap the SkPathRef in an
53 * SkPathRef::Editor object. Installing the editor resets the generation ID. It also performs
54 * copy-on-write if the SkPathRef is shared by multiple SkPaths. The caller passes the Editor's
55 * constructor a pointer to a sk_sp<SkPathRef>, which may be updated to point to a new SkPathRef
65 class SK_API SkPathRef final : public SkNVRefCnt<SkPathRef> {
67 SkPathRef(SkTDArray<SkPoint> points, SkTDArray<uint8_t> verbs, SkTDArray<SkScalar> weights,
89 Editor(sk_sp<SkPathRef>* pathRef,
137 std::tuple<SkPoint*, SkScalar*> growForVerbsInPath(const SkPathRef& path) {
152 SkPathRef* pathRef() { return fPathRef; }
165 SkPathRef* fPathRef;
171 Iter(const SkPathRef&);
173 void setPathRef(const SkPathRef&);
200 static SkPathRef* CreateEmpty();
286 static void CreateTransformedCopy(sk_sp<SkPathRef>* dst,
287 const SkPathRef& src,
290 // static SkPathRef* CreateFromBuffer(SkRBuffer* buffer);
297 static void Rewind(sk_sp<SkPathRef>* pathRef);
299 ~SkPathRef();
335 bool operator== (const SkPathRef& ref) const;
347 void interpolate(const SkPathRef& ending, SkScalar weight, SkPathRef* out) const;
373 SkPathRef() {
386 void copy(const SkPathRef& ref, int additionalReserveVerbs, int additionalReservePoints);
389 static bool ComputePtBounds(SkRect* bounds, const SkPathRef& ref) {
461 std::tuple<SkPoint*, SkScalar*> growForVerbsInPath(const SkPathRef& path);
471 friend SkPathRef* sk_create_empty_pathref();