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

Unified Diff: include/core/SkPaint.h

Issue 2125663003: Add gm that tests shaded stroked rectangles. (Closed) Base URL: https://skia.googlesource.com/skia.git@fixgmwidth
Patch Set: fix windows double->scalar warning Created 4 years, 5 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 | « gm/stroke_rect_shader.cpp ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPaint.h
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 293ffedc12aee6efac85be0ab93d685e73b859c5..c0f1f3eec893179d3f9b44a5ed822c12cc3cdfc4 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -409,9 +409,10 @@ public:
kRound_Cap, //!< begin/end contours with a semi-circle extension
kSquare_Cap, //!< begin/end contours with a half square extension
- kCapCount,
+ kLast_Cap = kSquare_Cap,
kDefault_Cap = kButt_Cap
};
+ static constexpr int kCapCount = kLast_Cap + 1;
/** Join enum specifies the settings for the paint's strokejoin. This is
the treatment that is applied to corners in paths and rectangles.
@@ -421,9 +422,10 @@ public:
kRound_Join, //!< connect path segments with a round join
kBevel_Join, //!< connect path segments with a flat bevel join
- kJoinCount,
+ kLast_Join = kBevel_Join,
kDefault_Join = kMiter_Join
};
+ static constexpr int kJoinCount = kLast_Join + 1;
/** Return the paint's stroke cap type, controlling how the start and end
of stroked lines and paths are treated.
« no previous file with comments | « gm/stroke_rect_shader.cpp ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698