Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkRRect.cpp88 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()
[all …]
/external/skia/include/core/
DSkRRect.h229 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,