Home
last modified time | relevance | path

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

/third_party/flutter/skia/src/core/
DSkRRect.cpp55 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() argument
61 const SkScalar array[4] = { leftRad, topRad, rightRad, bottomRad }; in setNinePatch()
67 leftRad = SkMaxScalar(leftRad, 0); in setNinePatch()
73 if (leftRad + rightRad > fRect.width()) { in setNinePatch()
74 scale = fRect.width() / (leftRad + rightRad); in setNinePatch()
81 leftRad *= scale; in setNinePatch()
87 if (leftRad == rightRad && topRad == bottomRad) { in setNinePatch()
88 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch()
90 } else if (0 == leftRad || 0 == topRad) { in setNinePatch()
94 leftRad = 0; in setNinePatch()
[all …]
/third_party/skia/src/core/
DSkRRect.cpp79 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() argument
85 const SkScalar array[4] = { leftRad, topRad, rightRad, bottomRad }; in setNinePatch()
91 leftRad = std::max(leftRad, 0.0f); in setNinePatch()
97 if (leftRad + rightRad > fRect.width()) { in setNinePatch()
98 scale = fRect.width() / (leftRad + rightRad); in setNinePatch()
105 leftRad *= scale; in setNinePatch()
111 if (leftRad == rightRad && topRad == bottomRad) { in setNinePatch()
112 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch()
114 } else if (0 == leftRad || 0 == topRad) { in setNinePatch()
118 leftRad = 0; in setNinePatch()
[all …]
/third_party/skia/include/core/
DSkRRect.h225 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
/third_party/flutter/skia/include/core/
DSkRRect.h248 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
/third_party/flutter/skia/site/user/api/
DSkRRect_Reference.md45 …t_Reference#Rect'>rect</a>, <a href='undocumented#SkScalar'>SkScalar</a> leftRad, <a href='undocum…
752 …t_Reference#Rect'>rect</a>, <a href='undocumented#SkScalar'>SkScalar</a> leftRad, <a href='undocum…
756 …h_rect'>rect</a>. Sets radii to (<a href='#SkRRect_setNinePatch_leftRad'>leftRad</a>, <a href='#Sk…
757 …atch_bottomRad'>bottomRad</a>), (<a href='#SkRRect_setNinePatch_leftRad'>leftRad</a>, <a href='#Sk…
760 Otherwise, if <a href='#SkRRect_setNinePatch_leftRad'>leftRad</a> and <a href='#SkRRect_setNinePatc…
762 Otherwise, if <a href='#SkRRect_setNinePatch_leftRad'>leftRad</a> and <a href='#SkRRect_setNinePatc…
764 Otherwise, if <a href='#SkRRect_setNinePatch_leftRad'>leftRad</a> and <a href='#SkRRect_setNinePatc…
775 <tr> <td><a name='SkRRect_setNinePatch_leftRad'><code><strong>leftRad</strong></code></a></td>
/third_party/flutter/skia/tools/fiddle/
Ddocumumentation_examples_map.txt3405 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, SkScalar rightRad, SkScala…
/third_party/skia/tools/fiddle/
Ddocumumentation_examples_map.txt3362 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, SkScalar rightRad, SkScala…