Home | History | Annotate | Download | only in core

Lines Matching full:direction

41         fSaved = static_cast<SkPath::Direction>(fPath->fDirection);
50 SkPath::Direction fSaved;
208 SkPath::Direction dir) {
237 Direction direction;
238 if (!this->cheapComputeDirection(&direction)) {
282 if (!check_edge_against_rect(prevPt, pts[nextPt], rect, direction)) {
289 return check_edge_against_rect(prevPt, firstPt, rect, direction);
344 Determines if path is a rect by keeping track of changes in direction
347 The direction is computed such that:
359 There's more than four changes of direction.
361 The line reverses direction.
371 The direction takes advantage of the corners found since opposite sides
379 bool* isClosed, Direction* direction) const {
429 return false; // too many direction changes
442 return false; // direction didn't follow cycle
469 if (result && direction) {
470 *direction = firstDirection == ((lastDirection + 1) & 3) ? kCCW_Direction : kCW_Direction;
486 bool SkPath::isRect(bool* isClosed, Direction* direction) const {
490 return isRectContour(false, &currVerb, &pts, isClosed, direction);
493 bool SkPath::isNestedRects(SkRect rects[2], Direction dirs[2]) const {
498 Direction testDirs[2];
790 void SkPath::addRect(const SkRect& rect, Direction dir) {
795 SkScalar bottom, Direction dir) {
906 Direction dir) {
965 SkRRect::Corner corner, SkPath::Direction dir) {
982 if ((corner & 1) == (dir == SkPath::kCCW_Direction)) { // corners always alternate direction
1039 void SkPath::addRRect(const SkRRect& rrect, Direction dir) {
1103 Direction dir) {
1206 void SkPath::addOval(const SkRect& oval, Direction dir) {
1275 void SkPath::addCircle(SkScalar x, SkScalar y, SkScalar r, Direction dir) {
1666 dst->fDirection = SkPath::OppositeDirection(static_cast<Direction>(fDirection));
2226 /** The direction returned is only valid if the path is determined convex */
2227 SkPath::Direction getDirection() const { return fDirection; }
2300 SkPath::Direction fDirection;
2510 static void crossToDir(SkScalar cross, SkPath::Direction* dir) {
2522 bool SkPath::cheapComputeDirection(Direction* dir) const {
2524 *dir = static_cast<Direction>(fDirection);
2532 *dir = static_cast<Direction>(fDirection);
2567 // SkScalar, since we just want - or + to signal the direction.
2589 // x-direction. We really should continue to walk away from the degeneracy until
2592 // construct the subtract so we get the correct Direction below