Lines Matching refs:leftRad
52 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() argument
62 const SkScalar array[4] = { leftRad, topRad, rightRad, bottomRad }; in setNinePatch()
68 leftRad = SkMaxScalar(leftRad, 0); in setNinePatch()
74 if (leftRad + rightRad > fRect.width()) { in setNinePatch()
75 scale = fRect.width() / (leftRad + rightRad); in setNinePatch()
82 leftRad = SkScalarMul(leftRad, scale); in setNinePatch()
88 if (leftRad == rightRad && topRad == bottomRad) { in setNinePatch()
89 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch()
91 } else if (0 == leftRad || 0 == topRad) { in setNinePatch()
95 leftRad = 0; in setNinePatch()
106 fRadii[kUpperLeft_Corner].set(leftRad, topRad); in setNinePatch()
109 fRadii[kLowerLeft_Corner].set(leftRad, bottomRad); in setNinePatch()