Lines Matching refs:fY
59 if (fRadii[i].fX <= 0 || fRadii[i].fY <= 0) {
65 fRadii[i].fY = 0;
92 if (fRadii[1].fY + fRadii[2].fY > rect.height()) {
94 SkScalarDiv(rect.height(), fRadii[1].fY + fRadii[2].fY));
100 if (fRadii[3].fY + fRadii[0].fY > rect.height()) {
102 SkScalarDiv(rect.height(), fRadii[3].fY + fRadii[0].fY));
108 fRadii[i].fY = SkScalarMul(fRadii[i].fY, scale);
131 y < fRect.fTop + fRadii[kUpperLeft_Corner].fY) {
135 y - (fRect.fTop + fRadii[kUpperLeft_Corner].fY));
136 SkASSERT(canonicalPt.fX < 0 && canonicalPt.fY < 0);
138 y > fRect.fBottom - fRadii[kLowerLeft_Corner].fY) {
142 y - (fRect.fBottom - fRadii[kLowerLeft_Corner].fY));
143 SkASSERT(canonicalPt.fX < 0 && canonicalPt.fY > 0);
145 y < fRect.fTop + fRadii[kUpperRight_Corner].fY) {
149 y - (fRect.fTop + fRadii[kUpperRight_Corner].fY));
150 SkASSERT(canonicalPt.fX > 0 && canonicalPt.fY < 0);
152 y > fRect.fBottom - fRadii[kLowerRight_Corner].fY) {
156 y - (fRect.fBottom - fRadii[kLowerRight_Corner].fY));
157 SkASSERT(canonicalPt.fX > 0 && canonicalPt.fY > 0);
170 SkScalar dist = SkScalarMul(SkScalarSquare(canonicalPt.fX), SkScalarSquare(fRadii[index].fY)) +
171 SkScalarMul(SkScalarSquare(canonicalPt.fY), SkScalarSquare(fRadii[index].fX));
172 return dist <= SkScalarSquare(SkScalarMul(fRadii[index].fX, fRadii[index].fY));
206 bool allCornersSquare = 0 == fRadii[0].fX || 0 == fRadii[0].fY;
209 if (0 != fRadii[i].fX && 0 != fRadii[i].fY) {
214 if (fRadii[i].fX != fRadii[i-1].fX || fRadii[i].fY != fRadii[i-1].fY) {
226 fRadii[0].fY >= SkScalarHalf(fRect.height())) {
287 dst->fRadii[i].fY = SkScalarMul(fRadii[i].fY, yScale);
333 if (radii[i].fY) {
334 radii[i].fY -= dy;
370 bool allRadiiZero = (0 == fRadii[0].fX && 0 == fRadii[0].fY);
371 bool allCornersSquare = (0 == fRadii[0].fX || 0 == fRadii[0].fY);
375 if (0 != fRadii[i].fX || 0 != fRadii[i].fY) {
379 if (fRadii[i].fX != fRadii[i-1].fX || fRadii[i].fY != fRadii[i-1].fY) {
383 if (0 != fRadii[i].fX && 0 != fRadii[i].fY) {
406 SkASSERT(SkScalarNearlyEqual(fRadii[i].fY, SkScalarHalf(fRect.height())));