Lines Matching refs:corners
374 The direction takes advantage of the corners found since opposite sides
394 int corners = 0;
425 if (0 == corners) {
429 corners = 1;
441 if (++corners > 4) {
449 // Possible values for corners are 2, 3, and 4.
450 // When corners == 3, nextDirection opposes firstDirection.
452 int turn = firstDirection ^ (corners - 1);
453 int directionCycle = 3 == corners ? 0 : nextDirection ^ turn;
474 // Success if 4 corners and first point equals last
475 bool result = 4 == corners && (first == last || autoClose);
490 if (3 == corners || (4 == corners && closeDirection == lastDirection)) {
1024 if ((corner & 1) == (dir == SkPath::kCCW_Direction)) { // corners always alternate direction