Searched refs:topRad (Results 1 – 7 of 7) sorted by relevance
/third_party/flutter/skia/src/core/ |
D | SkRRect.cpp | 55 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() argument 61 const SkScalar array[4] = { leftRad, topRad, rightRad, bottomRad }; in setNinePatch() 68 topRad = SkMaxScalar(topRad, 0); in setNinePatch() 76 if (topRad + bottomRad > fRect.height()) { in setNinePatch() 77 scale = SkMinScalar(scale, fRect.height() / (topRad + bottomRad)); in setNinePatch() 82 topRad *= 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() 95 topRad = 0; in setNinePatch() [all …]
|
/third_party/skia/src/core/ |
D | SkRRect.cpp | 79 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch() argument 85 const SkScalar array[4] = { leftRad, topRad, rightRad, bottomRad }; in setNinePatch() 92 topRad = std::max(topRad, 0.0f); in setNinePatch() 100 if (topRad + bottomRad > fRect.height()) { in setNinePatch() 101 scale = std::min(scale, fRect.height() / (topRad + bottomRad)); in setNinePatch() 106 topRad *= 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() 119 topRad = 0; in setNinePatch() [all …]
|
/third_party/skia/include/core/ |
D | SkRRect.h | 225 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
|
/third_party/flutter/skia/include/core/ |
D | SkRRect.h | 248 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
|
/third_party/flutter/skia/site/user/api/ |
D | SkRRect_Reference.md | 45 …='undocumented#SkScalar'>SkScalar</a> leftRad, <a href='undocumented#SkScalar'>SkScalar</a> topRad, 752 …alar'>SkScalar</a> leftRad, <a href='undocumented#SkScalar'>SkScalar</a> topRad, <a href='undocume… 756 …tNinePatch_topRad'>topRad</a>), (<a href='#SkRRect_setNinePatch_rightRad'>rightRad</a>, <a href='#… 761 Otherwise, if <a href='#SkRRect_setNinePatch_topRad'>topRad</a> and <a href='#SkRRect_setNinePatch_… 763 <a href='#SkRRect_setNinePatch_topRad'>topRad</a> and <a href='#SkRRect_setNinePatch_bottomRad'>bot… 764 …tRad'>rightRad</a> are equal, and <a href='#SkRRect_setNinePatch_topRad'>topRad</a> and <a href='#… 778 <tr> <td><a name='SkRRect_setNinePatch_topRad'><code><strong>topRad</strong></code></a></td>
|
/third_party/flutter/skia/tools/fiddle/ |
D | documumentation_examples_map.txt | 3405 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, SkScalar rightRad, SkScala…
|
/third_party/skia/tools/fiddle/ |
D | documumentation_examples_map.txt | 3362 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, SkScalar rightRad, SkScala…
|