Home
last modified time | relevance | path

Searched refs:yRad (Results 1 – 11 of 11) sorted by relevance

/third_party/flutter/skia/include/core/
DSkRRect.h187 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in MakeRectXY() argument
189 rr.setRectXY(rect, xRad, yRad); in MakeRectXY()
205 SkScalar yRad = SkScalarHalf(fRect.height()); in setOval() local
208 fRadii[i].set(xRad, yRad); in setOval()
226 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
/third_party/flutter/skia/src/core/
DSkRRect.cpp19 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY() argument
24 if (!SkScalarsAreFinite(xRad, yRad)) { in setRectXY()
25 xRad = yRad = 0; // devolve into a simple rect in setRectXY()
28 if (fRect.width() < xRad+xRad || fRect.height() < yRad+yRad) { in setRectXY()
31 sk_ieee_float_divide(fRect.height(), yRad + yRad)); in setRectXY()
34 yRad *= scale; in setRectXY()
37 if (xRad <= 0 || yRad <= 0) { in setRectXY()
44 fRadii[i].set(xRad, yRad); in setRectXY()
47 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY()
/third_party/skia/src/core/
DSkRRect.cpp27 SkScalar yRad = SkRectPriv::HalfHeight(fRect); in setOval() local
29 if (xRad == 0.0f || yRad == 0.0f) { in setOval()
35 fRadii[i].set(xRad, yRad); in setOval()
43 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY() argument
48 if (!SkScalarsAreFinite(xRad, yRad)) { in setRectXY()
49 xRad = yRad = 0; // devolve into a simple rect in setRectXY()
52 if (fRect.width() < xRad+xRad || fRect.height() < yRad+yRad) { in setRectXY()
55 sk_ieee_float_divide(fRect.height(), yRad + yRad)); in setRectXY()
58 yRad *= scale; in setRectXY()
61 if (xRad <= 0 || yRad <= 0) { in setRectXY()
[all …]
/third_party/flutter/skia/gm/
Dfilterfastbounds.cpp49 SkScalar yRad = r.height() / 4.0f; in draw_rrect() local
52 rr.setRectXY(r, xRad, yRad); in draw_rrect()
58 SkScalar yRad = r.height() / 4.0f; in draw_drrect() local
61 outer.setRectXY(r, xRad, yRad); in draw_drrect()
63 inner.inset(xRad, yRad); in draw_drrect()
/third_party/skia/gm/
Dfilterfastbounds.cpp48 SkScalar yRad = r.height() / 4.0f; in draw_rrect() local
51 rr.setRectXY(r, xRad, yRad); in draw_rrect()
57 SkScalar yRad = r.height() / 4.0f; in draw_drrect() local
60 outer.setRectXY(r, xRad, yRad); in draw_drrect()
62 inner.inset(xRad, yRad); in draw_drrect()
/third_party/skia/include/core/
DSkRRect.h176 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in MakeRectXY() argument
178 rr.setRectXY(rect, xRad, yRad); in MakeRectXY()
203 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/
DCanvas.java87 public void clipRRect(float left, float top, float right, float bottom, float xRad, float yRad, in clipRRect() argument
89 … nClipRRect(mNativeInstance, left, top, right, bottom, xRad, yRad, op.mNativeInt, antiAliasing); in clipRRect()
178 float bottom, float xRad, float yRad, in nClipRRect() argument
/third_party/skia/modules/androidkit/src/
DCanvas.cpp113 jfloat xRad, jfloat yRad, in Canvas_ClipRRect() argument
116 canvas->clipRRect(SkRRect::MakeRectXY(SkRect::MakeLTRB(l, t, r, b), xRad, yRad), in Canvas_ClipRRect()
/third_party/flutter/skia/site/user/api/
DSkRRect_Reference.md42 …href='undocumented#SkScalar'>SkScalar</a> xRad, <a href='undocumented#SkScalar'>SkScalar</a> yRad);
44 …href='undocumented#SkScalar'>SkScalar</a> xRad, <a href='undocumented#SkScalar'>SkScalar</a> yRad);
649 … href='undocumented#SkScalar'>SkScalar</a> xRad, <a href='undocumented#SkScalar'>SkScalar</a> yRad)
654 …#SkRRect_MakeRectXY_xRad'>xRad</a> and <a href='#SkRRect_MakeRectXY_yRad'>yRad</a> are zero, sets …
655 …a href='#SkRect_width'>width()</a> and <a href='#SkRRect_MakeRectXY_yRad'>yRad</a> is at least half
667 <tr> <td><a name='SkRRect_MakeRectXY_yRad'><code><strong>yRad</strong></code></a></td>
716 … href='undocumented#SkScalar'>SkScalar</a> xRad, <a href='undocumented#SkScalar'>SkScalar</a> yRad)
721 Otherwise, if <a href='#SkRRect_setRectXY_xRad'>xRad</a> or <a href='#SkRRect_setRectXY_yRad'>yRad<…
722 …<a href='#SkRect_width'>width()</a> and <a href='#SkRRect_setRectXY_yRad'>yRad</a> is at least half
734 <tr> <td><a name='SkRRect_setRectXY_yRad'><code><strong>yRad</strong></code></a></td>
/third_party/flutter/skia/tools/fiddle/
Ddocumumentation_examples_map.txt3273 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
3421 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
/third_party/skia/tools/fiddle/
Ddocumumentation_examples_map.txt3230 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
3378 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);