Lines Matching refs:nextDirection
388 int nextDirection = 0;
410 nextDirection = (left != right) << 0 |
413 firstDirection = nextDirection;
423 if (autoClose && nextDirection == firstDirection) {
427 if (lastDirection != nextDirection) {
433 if (lastDirection == nextDirection) {
437 // When corners == 3, nextDirection opposes firstDirection.
438 // Otherwise, nextDirection at corner 2 opposes corner 4.
440 int directionCycle = 3 == corners ? 0 : nextDirection ^ turn;
441 if ((directionCycle ^ turn) != nextDirection) {
459 lastDirection = nextDirection;