Index: include/core/SkRRect.h |
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h |
index 8d8cdbf02c79de89e62360c6dc6296089c9faeb3..994edd2cc1c76b088f890b5e0ed174a865194b03 100644 |
--- a/include/core/SkRRect.h |
+++ b/include/core/SkRRect.h |
@@ -153,6 +153,12 @@ public: |
return rr; |
} |
+ static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { |
+ SkRRect rr; |
+ rr.setRectXY(rect, xRad, yRad); |
+ return rr; |
+ } |
+ |
/** |
* Set this RR to match the supplied oval. All x radii will equal half the |
* width and all y radii will equal half the height. |