/third_party/skia/src/core/ |
H A D | SkRRect.cpp | 26 SkScalar xRad = SkRectPriv::HalfWidth(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() 54 SkScalar scale = std::min(sk_ieee_float_divide(fRect. width(), xRad + xRad), in setRectXY() [all...] |
/third_party/skia/include/core/ |
H A D | SkRRect.h | 166 Otherwise, if xRad and yRad are zero, sets to kRect_Type. 167 Otherwise, if xRad is at least half rect.width() and yRad is at least half 172 @param xRad x-axis radius of corners 176 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in MakeRectXY() argument 178 rr.setRectXY(rect, xRad, yRad); in MakeRectXY() 192 Otherwise, if xRad or yRad is zero, sets to kRect_Type. 193 Otherwise, if xRad is at least half rect.width() and yRad is at least half 198 @param xRad x-axis radius of corners 203 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
|
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/ |
H A D | Canvas.java | 87 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() 177 nClipRRect(long nativeInstance, float left, float top, float right, float bottom, float xRad, float yRad, int clipOp, boolean doAA) nClipRRect() argument
|
/third_party/skia/gm/ |
H A D | filterfastbounds.cpp | 47 SkScalar xRad = r.width() / 4.0f; in draw_rrect() local 51 rr.setRectXY(r, xRad, yRad); in draw_rrect() 56 SkScalar xRad = r.width() / 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/modules/androidkit/src/ |
H A D | Canvas.cpp | 113 jfloat xRad, jfloat yRad, in Canvas_ClipRRect() 116 canvas->clipRRect(SkRRect::MakeRectXY(SkRect::MakeLTRB(l, t, r, b), xRad, yRad), in Canvas_ClipRRect() 112 Canvas_ClipRRect(JNIEnv* env, jobject, jlong native_instance, jfloat l, jfloat t, jfloat r, jfloat b, jfloat xRad, jfloat yRad, jint native_clipOp, jboolean doAA) Canvas_ClipRRect() argument
|