Lines Matching defs:dir

260                                            SkPathFirstDirection dir) {
263 if (SkPathFirstDirection::kCW == dir) {
789 static void assert_known_direction(SkPathDirection dir) {
790 SkASSERT(SkPathDirection::kCW == dir || SkPathDirection::kCCW == dir);
793 SkPath& SkPath::addRect(const SkRect &rect, SkPathDirection dir, unsigned startIndex) {
794 assert_known_direction(dir);
795 this->setFirstDirection(this->hasOnlyMoveTos() ? (SkPathFirstDirection)dir
805 SkPath_RectPointIterator iter(rect, dir, startIndex);
870 SkVector* startV, SkVector* stopV, SkRotationDirection* dir) {
900 *dir = sweepAngle > 0 ? kCW_SkRotationDirection : kCCW_SkRotationDirection;
908 SkRotationDirection dir, SkConic conics[SkConic::kMaxConicsForArc],
915 int count = SkConic::BuildUnitArc(start, stop, dir, &matrix, conics);
923 SkPathDirection dir) {
926 return this->addRRect(rrect, dir);
929 SkPath& SkPath::addRRect(const SkRRect& rrect, SkPathDirection dir) {
931 return this->addRRect(rrect, dir, dir == SkPathDirection::kCW ? 6 : 7);
934 SkPath& SkPath::addRRect(const SkRRect &rrect, SkPathDirection dir, unsigned startIndex) {
935 assert_known_direction(dir);
942 this->addRect(bounds, dir, (startIndex + 1) / 2);
945 this->addOval(bounds, dir, startIndex / 2);
947 this->setFirstDirection(this->hasOnlyMoveTos() ? (SkPathFirstDirection)dir
954 const bool startsWithConic = ((startIndex & 1) == (dir == SkPathDirection::kCW));
963 SkPath_RRectPointIterator rrectIter(rrect, dir, startIndex);
966 const unsigned rectStartIndex = startIndex / 2 + (dir == SkPathDirection::kCW ? 0 : 1);
967 SkPath_RectPointIterator rectIter(bounds, dir, rectStartIndex);
986 ed.setIsRRect(isRRect, dir == SkPathDirection::kCCW, startIndex % 8);
1026 SkPathDirection dir) {
1027 assert_known_direction(dir);
1035 return this->addRRect(rrect, dir);
1038 SkPath& SkPath::addOval(const SkRect& oval, SkPathDirection dir) {
1040 return this->addOval(oval, dir, 1);
1043 SkPath& SkPath::addOval(const SkRect &oval, SkPathDirection dir, unsigned startPointIndex) {
1044 assert_known_direction(dir);
1054 this->setFirstDirection((SkPathFirstDirection)dir);
1066 SkPath_OvalPointIterator ovalIter(oval, dir, startPointIndex);
1068 SkPath_RectPointIterator rectIter(oval, dir, startPointIndex + (dir == SkPathDirection::kCW ? 0 : 1));
1081 ed.setIsOval(isOval, SkPathDirection::kCCW == dir, startPointIndex % 4);
1085 SkPath& SkPath::addCircle(SkScalar x, SkScalar y, SkScalar r, SkPathDirection dir) {
1087 this->addOval(SkRect::MakeLTRB(x - r, y - r, x + r, y + r), dir);
1108 SkRotationDirection dir;
1109 angles_to_unit_vectors(startAngle, sweepAngle, &startV, &stopV, &dir);
1144 int count = build_arc_conics(oval, startV, stopV, dir, conics, &singlePt);
2215 DirChange dir = this->directionChange(curVec);
2216 switch (dir) {
2220 fExpectedDir = dir;
2221 fFirstDirection = (kRight_DirChange == dir) ? SkPathFirstDirection::kCW
2223 } else if (dir != fExpectedDir) {
2564 // x-min and x-max of them and just subtract to compute the dir.
2659 int dir = 1;
2663 dir = -1;
2683 return dir;
2698 return xt < x ? dir : 0;
2734 int dir = 1;
2738 dir = -1;
2763 // Need [0] if dir == 1
2764 // and [2] if dir == -1
2765 xt = pts[1 - dir].fX;
2776 return xt < x ? dir : 0;
2809 int dir = 1;
2813 dir = -1;
2841 // Need [0] if dir == 1
2842 // and [2] if dir == -1
2843 xt = pts[1 - dir].fX;
2857 return xt < x ? dir : 0;
2883 int dir = 1;
2887 dir = -1;
2908 dir = 0;
2909 } else if (SkScalarSignAsInt(cross) == dir) {
2910 dir = 0;
2912 return dir;
3463 SkPath SkPath::Rect(const SkRect& r, SkPathDirection dir, unsigned startIndex) {
3464 return SkPathBuilder().addRect(r, dir, startIndex).detach();
3467 SkPath SkPath::Oval(const SkRect& r, SkPathDirection dir) {
3468 return SkPathBuilder().addOval(r, dir).detach();
3471 SkPath SkPath::Oval(const SkRect& r, SkPathDirection dir, unsigned startIndex) {
3472 return SkPathBuilder().addOval(r, dir, startIndex).detach();
3475 SkPath SkPath::Circle(SkScalar x, SkScalar y, SkScalar r, SkPathDirection dir) {
3476 return SkPathBuilder().addCircle(x, y, r, dir).detach();
3479 SkPath SkPath::RRect(const SkRRect& rr, SkPathDirection dir) {
3480 return SkPathBuilder().addRRect(rr, dir).detach();
3483 SkPath SkPath::RRect(const SkRRect& rr, SkPathDirection dir, unsigned startIndex) {
3484 return SkPathBuilder().addRRect(rr, dir, startIndex).detach();
3487 SkPath SkPath::RRect(const SkRect& r, SkScalar rx, SkScalar ry, SkPathDirection dir) {
3488 return SkPathBuilder().addRRect(SkRRect::MakeRectXY(r, rx, ry), dir).detach();