Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: include/core/SkRRect.h

Issue 2042813002: Make GrShape track the winding direction and starting point for rrect types. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Fix more MSVS warnings Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrShape.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkRRect.h
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h
index 5564ce0d7ee9733f24e77c1466a42c384b20d6d4..d025412d646ddc7028ea1c9e80784122d5579839 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);
« no previous file with comments | « no previous file | src/gpu/GrShape.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698