aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-06-06 14:01:25 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-06 14:01:25 -0700
commitee295645bd91fcbe1714847c5fe5341759037cc5 (patch)
treecfa03cc1b5ce3831372218166ffa86a4e1e162f2 /include
parent982eb7f377a0c771345276558072deb2fcea0d3e (diff)
Make GrShape track the winding direction and starting point for rrect types.
Diffstat (limited to 'include')
-rw-r--r--include/core/SkRRect.h8
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);