Lines Matching refs:leftRad
88 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() argument
94 const SkScalar array[4] = { leftRad, topRad, rightRad, bottomRad }; in setNinePatch()
100 leftRad = std::max(leftRad, 0.0f); in setNinePatch()
106 if (leftRad + rightRad > fRect.width()) { in setNinePatch()
107 scale = fRect.width() / (leftRad + rightRad); in setNinePatch()
114 leftRad *= scale; in setNinePatch()
120 if (leftRad == rightRad && topRad == bottomRad) { in setNinePatch()
121 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch()
123 } else if (0 == leftRad || 0 == topRad) { in setNinePatch()
127 leftRad = 0; in setNinePatch()
138 fRadii[kUpperLeft_Corner].set(leftRad, topRad); in setNinePatch()
141 fRadii[kLowerLeft_Corner].set(leftRad, bottomRad); in setNinePatch()