Home
last modified time | relevance | path

Searched refs:topRad (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()
69 topRad = SkMaxScalar(topRad, 0); in setNinePatch()
77 if (topRad + bottomRad > fRect.height()) { in setNinePatch()
78 scale = SkMinScalar(scale, fRect.height() / (topRad + bottomRad)); in setNinePatch()
83 topRad *= 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()
96 topRad = 0; in setNinePatch()
[all …]
/external/skia/include/core/
DSkRRect.h203 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
/external/skia/samplecode/
DSamplePathFuzz.cpp347 SkScalar topRad = makeScalar(); in makeRRect() local
350 rrect.setNinePatch(rect, leftRad, topRad, rightRad, bottomRad); in makeRRect()