Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkRRect.cpp48 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/
DSkRRect.h167 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
/external/skia/samplecode/
DSamplePathFuzz.cpp345 SkScalar leftRad = makeScalar(); in makeRRect() local
349 rrect.setNinePatch(rect, leftRad, topRad, rightRad, bottomRad); in makeRRect()