Lines Matching refs:leftRad
48 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() argument
55 const SkScalar array[4] = { leftRad, topRad, rightRad, bottomRad }; in setNinePatch()
61 leftRad = SkMaxScalar(leftRad, 0); in setNinePatch()
67 if (leftRad + rightRad > rect.width()) { in setNinePatch()
68 scale = rect.width() / (leftRad + rightRad); in setNinePatch()
75 leftRad = SkScalarMul(leftRad, scale); in setNinePatch()
81 if (leftRad == rightRad && topRad == bottomRad) { in setNinePatch()
82 if (leftRad >= SkScalarHalf(rect.width()) && topRad >= SkScalarHalf(rect.height())) { in setNinePatch()
84 } else if (0 == leftRad || 0 == topRad) { in setNinePatch()
88 leftRad = 0; in setNinePatch()
100 fRadii[kUpperLeft_Corner].set(leftRad, topRad); in setNinePatch()
103 fRadii[kLowerLeft_Corner].set(leftRad, bottomRad); in setNinePatch()