diff options
author | bsalomon <bsalomon@google.com> | 2016-06-06 14:01:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-06 14:01:25 -0700 |
commit | ee295645bd91fcbe1714847c5fe5341759037cc5 (patch) | |
tree | cfa03cc1b5ce3831372218166ffa86a4e1e162f2 /include | |
parent | 982eb7f377a0c771345276558072deb2fcea0d3e (diff) |
Make GrShape track the winding direction and starting point for rrect types.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2042813002
Review-Url: https://codereview.chromium.org/2042813002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkRRect.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h index 5564ce0d7e..d025412d64 100644 --- a/include/core/SkRRect.h +++ b/include/core/SkRRect.h @@ -141,12 +141,18 @@ public: SkDEBUGCODE(this->validate();) } + static SkRRect MakeEmpty() { + SkRRect rr; + rr.setEmpty(); + return rr; + } + static SkRRect MakeRect(const SkRect& r) { SkRRect rr; rr.setRect(r); return rr; } - + static SkRRect MakeOval(const SkRect& oval) { SkRRect rr; rr.setOval(oval); |