Lines Matching refs:leftRad
79 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() argument
85 const SkScalar array[4] = { leftRad, topRad, rightRad, bottomRad }; in setNinePatch()
91 leftRad = std::max(leftRad, 0.0f); in setNinePatch()
97 if (leftRad + rightRad > fRect.width()) { in setNinePatch()
98 scale = fRect.width() / (leftRad + rightRad); in setNinePatch()
105 leftRad *= scale; in setNinePatch()
111 if (leftRad == rightRad && topRad == bottomRad) { in setNinePatch()
112 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch()
114 } else if (0 == leftRad || 0 == topRad) { in setNinePatch()
118 leftRad = 0; in setNinePatch()
129 fRadii[kUpperLeft_Corner].set(leftRad, topRad); in setNinePatch()
132 fRadii[kLowerLeft_Corner].set(leftRad, bottomRad); in setNinePatch()