Lines Matching refs:next_cw
31 static AI skvx::Vec<4, T> next_cw(const skvx::Vec<4, T>& v) {
41 // Same as next_ccw(next_ccw(v)), or next_cw(next_cw(v)), e.g. two rotations either direction.
439 M4f cwValid = next_cw(v.fW) >= SkPathPriv::kW0PlaneDistance;
451 if_then_else(ccwValid, clip.fX, /* cwValid */ next_cw(clip.fX))));
454 if_then_else(ccwValid, clip.fY, /* cwValid */ next_cw(clip.fY))));
459 if_then_else(ccwValid, clip.fU, /* cwValid */ next_cw(clip.fU))));
462 if_then_else(ccwValid, clip.fV, /* cwValid */ next_cw(clip.fV))));
465 if_then_else(ccwValid, clip.fR, /* cwValid */ next_cw(clip.fR))));
489 if_then_else(cwValid, next_cw(mid.fX), v.fX));
491 if_then_else(cwValid, next_cw(mid.fY), v.fY));
493 if_then_else(cwValid, next_cw(mid.fW), v.fW));
496 if_then_else(cwValid, next_cw(mid.fU), v.fU));
498 if_then_else(cwValid, next_cw(mid.fV), v.fV));
500 if_then_else(cwValid, next_cw(mid.fR), v.fR));
510 v.fX = if_then_else(!validW, next_cw(clip.fX),
512 v.fY = if_then_else(!validW, next_cw(clip.fY),
517 v.fU = if_then_else(!validW, next_cw(clip.fU),
519 v.fV = if_then_else(!validW, next_cw(clip.fV),
521 v.fR = if_then_else(!validW, next_cw(clip.fR),
686 fCosTheta = fDX*next_cw(fDX) + fDY*next_cw(fDY);
703 V4f test = dy * next_cw(edgeVectors.fX2D) + (-dx * next_cw(edgeVectors.fY2D) + c);
765 V4f denom = fA * next_cw(fB) - fB * next_cw(fA);
766 V4f px = (fB * next_cw(oc) - oc * next_cw(fB)) / denom;
767 V4f py = (oc * next_cw(fA) - fA * next_cw(oc)) / denom;
870 *aaMask = *aaMask | (d1Or2 & next_cw(*aaMask)) | (next_ccw(d1Or2) & next_ccw(*aaMask));
919 next_cw(edgeDistances) * edgeVectors.fInvSinTheta;
983 V4f signedOutsets = -edgeVectors.fInvSinTheta * next_cw(signedEdgeDistances);
986 // x = x + outset * mask * next_cw(xdiff) - outset * next_cw(mask) * xdiff
987 fX += signedOutsetsCW * next_cw(edgeVectors.fDX) + signedOutsets * edgeVectors.fDX;
988 fY += signedOutsetsCW * next_cw(edgeVectors.fDY) + signedOutsets * edgeVectors.fDY;
992 signedOutsetsCW *= next_cw(edgeVectors.fInvLengths);
995 fU += signedOutsetsCW * next_cw(du) + signedOutsets * du;
996 fV += signedOutsetsCW * next_cw(dv) + signedOutsets * dv;
999 fR += signedOutsetsCW * next_cw(dr) + signedOutsets * dr;
1245 V4f halfLengths = -0.5f / next_cw(fEdgeVectors.fInvLengths); // Negate to inset