Lines Matching refs:radii
119 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii()
124 if (!SkScalarsAreFinite(&radii[0].fX, 8)) { in setRectRadii()
129 memcpy(fRadii, radii, sizeof(fRadii)); in setRectRadii()
288 static bool radii_are_nine_patch(const SkVector radii[4]) { in radii_are_nine_patch()
289 return radii[SkRRect::kUpperLeft_Corner].fX == radii[SkRRect::kLowerLeft_Corner].fX && in radii_are_nine_patch()
290 radii[SkRRect::kUpperLeft_Corner].fY == radii[SkRRect::kUpperRight_Corner].fY && in radii_are_nine_patch()
291 radii[SkRRect::kUpperRight_Corner].fX == radii[SkRRect::kLowerRight_Corner].fX && in radii_are_nine_patch()
292 radii[SkRRect::kLowerLeft_Corner].fY == radii[SkRRect::kLowerRight_Corner].fY; in radii_are_nine_patch()
473 SkVector radii[4]; in inset() local
474 memcpy(radii, fRadii, sizeof(radii)); in inset()
476 if (radii[i].fX) { in inset()
477 radii[i].fX -= dx; in inset()
479 if (radii[i].fY) { in inset()
480 radii[i].fY -= dy; in inset()
483 dst->setRectRadii(r, radii); in inset()
624 bool SkRRect::AreRectAndRadiiValid(const SkRect& rect, const SkVector radii[4]) { in AreRectAndRadiiValid()
629 if (!are_radius_check_predicates_valid(radii[i].fX, rect.fLeft, rect.fRight) || in AreRectAndRadiiValid()
630 !are_radius_check_predicates_valid(radii[i].fY, rect.fTop, rect.fBottom)) { in AreRectAndRadiiValid()