Lines Matching refs:points

44     int      points, weights;
51 * Holds the path verbs and points. It is versioned by a generation ID. None of its public methods
52 * modify the contents. To modify or append to the verbs/points wrap the SkPathRef in an
58 * The points and verbs are stored in a single allocation. The points are at the begining of the
59 * allocation while the verbs are stored at end of the allocation, in reverse order. Thus the points
67 SkPathRef(SkTDArray<SkPoint> points, SkTDArray<uint8_t> verbs, SkTDArray<SkScalar> weights,
69 : fPoints(std::move(points))
96 * Returns the array of points.
99 const SkPoint* points() const { return fPathRef->points(); }
102 * Gets the ith point. Shortcut for this->points() + i
108 * Adds the verb and allocates space for the number of points indicated by the verb. The
109 * return value is a pointer to where the points for the verb should be written.
119 * requisite points & weights.
120 * The return pointer points at the first new point (indexed normally [<i>]).
132 * count by the number of points in 'path', and the conic weight count by the number of
135 * Returns pointers to the uninitialized points and conic weights data.
142 * Resets the path ref to a new verb and point count. The new verbs and points are
180 @param pts The points representing the current verb and/or segment
198 * Gets a path ref with no verbs or points.
203 * Returns true if all of the points in this path are finite, meaning there
269 /** Returns the bounds of the path's points. If the path contains 0 or 1
270 points, the bounds is set to (0,0,0,0), and isEmpty() will return true.
272 do not extend as far as their control points.
293 * Rollsback a path ref to zero verbs and points with the assumption that the path ref will be
294 * repopulated with approximately the same number of verbs and points. A new path ref is created
319 const SkPoint* points() const { return fPoints.begin(); }
322 * Shortcut for this->points() + this->countPoints()
324 const SkPoint* pointsEnd() const { return this->points() + this->countPoints(); }
338 * Writes the path points and verbs to a buffer.
351 * same ID then they have the same verbs and points. However, two path refs may have the same
390 return bounds->setBoundsCheck(ref.points(), ref.countPoints());
419 /** Resets the path ref with verbCount verbs and pointCount points, all uninitialized. Also
420 * allocates space for reserveVerb additional verbs and reservePoints additional points.*/
442 * The new points are uninitialized. All the new verbs are set to the specified
450 * of additional points. A pointer to the first point is returned. Any new points are
457 * number of points in 'path', and the conic weight count by the number of conics in 'path'.
459 * Returns pointers to the uninitialized points and conic weights data.
511 kEmptyGenID = 1, // GenID reserved for path ref with zero points and zero verbs.