| Index: include/core/SkRRect.h
|
| diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h
|
| index b9c3a79763fceba17e34f9400758b8088163de2b..37766219df3a50f182c422da76c4c33826822523 100644
|
| --- a/include/core/SkRRect.h
|
| +++ b/include/core/SkRRect.h
|
| @@ -134,6 +134,12 @@ public:
|
| SkDEBUGCODE(this->validate();)
|
| }
|
|
|
| + static SkRRect MakeRect(const SkRect& r) {
|
| + SkRRect rr;
|
| + rr.setRect(r);
|
| + 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.
|
|
|