Searched refs:leftRad (Results 1 – 3 of 3) sorted by relevance
/external/skia/src/core/ |
D | SkRRect.cpp | 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() [all …]
|
/external/skia/include/core/ |
D | SkRRect.h | 167 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
|
/external/skia/samplecode/ |
D | SamplePathFuzz.cpp | 345 SkScalar leftRad = makeScalar(); in makeRRect() local 349 rrect.setNinePatch(rect, leftRad, topRad, rightRad, bottomRad); in makeRRect()
|