Lines Matching refs:SkPath
32 static bool is_degenerate(const SkPath& path) { in is_degenerate()
33 SkPath::Iter iter(path, false); in is_degenerate()
35 return SkPath::kDone_Verb == iter.next(pts); in is_degenerate()
40 SkAutoDisableDirectionCheck(SkPath* path) : fPath(path) { in SkAutoDisableDirectionCheck()
41 fSaved = static_cast<SkPath::Direction>(fPath->fDirection); in SkAutoDisableDirectionCheck()
49 SkPath* fPath;
50 SkPath::Direction fSaved;
68 SkAutoPathBoundsUpdate(SkPath* path, const SkRect& r) : fRect(r) { in SkAutoPathBoundsUpdate()
72 SkAutoPathBoundsUpdate(SkPath* path, SkScalar left, SkScalar top, in SkAutoPathBoundsUpdate()
79 fPath->setConvexity(fDegenerate ? SkPath::kConvex_Convexity in ~SkAutoPathBoundsUpdate()
80 : SkPath::kUnknown_Convexity); in ~SkAutoPathBoundsUpdate()
87 SkPath* fPath;
93 void init(SkPath* path) { in init()
128 SkPath::SkPath() in SkPath() function in SkPath
137 void SkPath::resetFields() { in resetFields()
148 SkPath::SkPath(const SkPath& that) in SkPath() function in SkPath
157 SkPath::~SkPath() { in ~SkPath()
161 SkPath& SkPath::operator=(const SkPath& that) { in operator =()
175 void SkPath::copyFields(const SkPath& that) { in copyFields()
183 bool operator==(const SkPath& a, const SkPath& b) { in operator ==()
190 void SkPath::swap(SkPath& that) { in swap()
200 SkTSwap<const SkPath*>(fSourcePath, that.fSourcePath); in swap()
208 SkPath::Direction dir) { in check_edge_against_rect()
211 if (SkPath::kCW_Direction == dir) { in check_edge_against_rect()
231 bool SkPath::conservativelyContainsRect(const SkRect& rect) const { in conservativelyContainsRect()
245 SkPath::Verb verb; in conservativelyContainsRect()
292 uint32_t SkPath::getGenerationID() const { in getGenerationID()
302 const SkPath* SkPath::getSourcePath() const { in getSourcePath()
306 void SkPath::setSourcePath(const SkPath* path) { in setSourcePath()
311 void SkPath::reset() { in reset()
318 void SkPath::rewind() { in rewind()
325 bool SkPath::isLine(SkPoint line[2]) const { in isLine()
378 bool SkPath::isRectContour(bool allowPartial, int* currVerb, const SkPoint** ptsPtr, in isRectContour()
475 bool SkPath::isRect(SkRect* rect) const { in isRect()
486 bool SkPath::isRect(bool* isClosed, Direction* direction) const { in isRect()
493 bool SkPath::isNestedRects(SkRect rects[2], Direction dirs[2]) const { in isNestedRects()
533 int SkPath::countPoints() const { in countPoints()
537 int SkPath::getPoints(SkPoint dst[], int max) const { in getPoints()
547 SkPoint SkPath::getPoint(int index) const { in getPoint()
554 int SkPath::countVerbs() const { in countVerbs()
566 int SkPath::getVerbs(uint8_t dst[], int max) const { in getVerbs()
576 bool SkPath::getLastPt(SkPoint* lastPt) const { in getLastPt()
592 void SkPath::setLastPt(SkScalar x, SkScalar y) { in setLastPt()
604 void SkPath::setConvexity(Convexity c) { in setConvexity()
619 void SkPath::incReserve(U16CPU inc) { in incReserve()
625 void SkPath::moveTo(SkScalar x, SkScalar y) { in moveTo()
636 void SkPath::rMoveTo(SkScalar x, SkScalar y) { in rMoveTo()
642 void SkPath::injectMoveToIfNeeded() { in injectMoveToIfNeeded()
656 void SkPath::lineTo(SkScalar x, SkScalar y) { in lineTo()
667 void SkPath::rLineTo(SkScalar x, SkScalar y) { in rLineTo()
674 void SkPath::quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) { in quadTo()
687 void SkPath::rQuadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) { in rQuadTo()
694 void SkPath::conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in conicTo()
718 void SkPath::rConicTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2, in rConicTo()
726 void SkPath::cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in cubicTo()
741 void SkPath::rCubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in rCubicTo()
750 void SkPath::close() { in close()
787 SkASSERT(SkPath::kCW_Direction == dir || SkPath::kCCW_Direction == dir); in assert_known_direction()
790 void SkPath::addRect(const SkRect& rect, Direction dir) { in addRect()
794 void SkPath::addRect(SkScalar left, SkScalar top, SkScalar right, in addRect()
817 void SkPath::addPoly(const SkPoint pts[], int count, bool close) { in addPoly()
905 void SkPath::addRoundRect(const SkRect& rect, const SkScalar radii[], in addRoundRect()
964 static void add_corner_quads(SkPath* path, const SkRRect& rrect, in add_corner_quads()
965 SkRRect::Corner corner, SkPath::Direction dir) { in add_corner_quads()
982 if ((corner & 1) == (dir == SkPath::kCCW_Direction)) { // corners always alternate direction in add_corner_quads()
983 SkASSERT(dir == SkPath::kCCW_Direction in add_corner_quads()
1039 void SkPath::addRRect(const SkRRect& rrect, Direction dir) { in addRRect()
1083 bool SkPath::hasOnlyMoveTos() const { in hasOnlyMoveTos()
1102 void SkPath::addRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry, in addRoundRect()
1206 void SkPath::addOval(const SkRect& oval, Direction dir) { in addOval()
1275 void SkPath::addCircle(SkScalar x, SkScalar y, SkScalar r, Direction dir) { in addCircle()
1283 void SkPath::arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, in arcTo()
1303 void SkPath::addArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle) { in addArc()
1339 void SkPath::arcTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in arcTo()
1406 void SkPath::addPath(const SkPath& path, SkScalar dx, SkScalar dy) { in addPath()
1413 void SkPath::addPath(const SkPath& path, const SkMatrix& matrix) { in addPath()
1471 void SkPath::reversePathTo(const SkPath& path) { in reversePathTo()
1492 conicWeights += (SkPath::kConic_Verb == v); in reversePathTo()
1518 void SkPath::reverseAddPath(const SkPath& src) { in reverseAddPath()
1571 void SkPath::offset(SkScalar dx, SkScalar dy, SkPath* dst) const { in offset()
1580 static void subdivide_quad_to(SkPath* path, const SkPoint pts[3], in subdivide_quad_to()
1593 static void subdivide_cubic_to(SkPath* path, const SkPoint pts[4], in subdivide_cubic_to()
1606 void SkPath::transform(const SkMatrix& matrix, SkPath* dst) const { in transform()
1609 dst = (SkPath*)this; in transform()
1613 SkPath tmp; in transform()
1616 SkPath::Iter iter(*this, false); in transform()
1618 SkPath::Verb verb; in transform()
1666 dst->fDirection = SkPath::OppositeDirection(static_cast<Direction>(fDirection)); in transform()
1691 SkPath::Iter::Iter() { in Iter()
1705 SkPath::Iter::Iter(const SkPath& path, bool forceClose) { in Iter()
1709 void SkPath::Iter::setPath(const SkPath& path, bool forceClose) { in setPath()
1721 bool SkPath::Iter::isClosedContour() const { in isClosedContour()
1749 SkPath::Verb SkPath::Iter::autoClose(SkPoint pts[2]) { in autoClose()
1771 const SkPoint& SkPath::Iter::cons_moveTo() { in cons_moveTo()
1783 void SkPath::Iter::consumeDegenerateSegments() { in consumeDegenerateSegments()
1861 SkPath::Verb SkPath::Iter::doNext(SkPoint ptsParam[4]) { in doNext()
1940 SkPath::RawIter::RawIter() { in RawIter()
1951 SkPath::RawIter::RawIter(const SkPath& path) { in RawIter()
1955 void SkPath::RawIter::setPath(const SkPath& path) { in setPath()
1964 SkPath::Verb SkPath::RawIter::next(SkPoint pts[4]) { in next()
2017 size_t SkPath::writeToMemory(void* storage) const { in writeToMemory()
2043 size_t SkPath::readFromMemory(const void* storage, size_t length) { in readFromMemory()
2111 void SkPath::dump(bool forceClose, const char title[]) const { in dump()
2150 void SkPath::dump() const { in dump()
2155 void SkPath::validate() const { in validate()
2210 , fConvexity(SkPath::kConvex_Convexity) in Convexicator()
2211 , fDirection(SkPath::kUnknown_Direction) { in Convexicator()
2224 SkPath::Convexity getConvexity() const { return fConvexity; } in getConvexity()
2227 SkPath::Direction getDirection() const { return fDirection; } in getDirection()
2230 if (SkPath::kConcave_Convexity == fConvexity) { in addPt()
2257 fConvexity = SkPath::kConcave_Convexity; in addPt()
2282 fDirection = SkPath::kCW_Direction; in addVec()
2284 fDirection = SkPath::kCCW_Direction; in addVec()
2288 fConvexity = SkPath::kConcave_Convexity; in addVec()
2289 fDirection = SkPath::kUnknown_Direction; in addVec()
2299 SkPath::Convexity fConvexity;
2300 SkPath::Direction fDirection;
2304 SkPath::Convexity SkPath::internalGetConvexity() const { in internalGetConvexity()
2307 SkPath::Verb verb; in internalGetConvexity()
2308 SkPath::Iter iter(*this, true); in internalGetConvexity()
2314 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in internalGetConvexity()
2398 SkASSERT(SkPath::kMove_Verb == fCurrVerb[~0]); in next()
2404 case SkPath::kMove_Verb: in next()
2406 case SkPath::kLine_Verb: in next()
2409 case SkPath::kConic_Verb: in next()
2412 case SkPath::kQuad_Verb: in next()
2415 case SkPath::kCubic_Verb: in next()
2418 case SkPath::kClose_Verb: in next()
2510 static void crossToDir(SkScalar cross, SkPath::Direction* dir) { in crossToDir()
2511 *dir = cross > 0 ? SkPath::kCW_Direction : SkPath::kCCW_Direction; in crossToDir()
2522 bool SkPath::cheapComputeDirection(Direction* dir) const { in cheapComputeDirection()
2816 bool SkPath::contains(SkScalar x, SkScalar y) const { in contains()
2826 SkPath::Iter iter(*this, true); in contains()
2832 case SkPath::kMove_Verb: in contains()
2833 case SkPath::kClose_Verb: in contains()
2835 case SkPath::kLine_Verb: in contains()
2838 case SkPath::kQuad_Verb: in contains()
2841 case SkPath::kConic_Verb: in contains()
2844 case SkPath::kCubic_Verb: in contains()
2847 case SkPath::kDone_Verb: in contains()
2854 case SkPath::kEvenOdd_FillType: in contains()
2855 case SkPath::kInverseEvenOdd_FillType: in contains()