Home
last modified time | relevance | path

Searched refs:leftRad (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/core/
DSkRRect.cpp52 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()
[all …]
/external/skia/include/core/
DSkRRect.h194 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
/external/skia/samplecode/
DSamplePathFuzz.cpp346 SkScalar leftRad = makeScalar(); in makeRRect() local
350 rrect.setNinePatch(rect, leftRad, topRad, rightRad, bottomRad); in makeRRect()