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

Unified Diff: gm/circulararcs.cpp

Issue 2269723002: Add cap type variations to circular arcs GMs (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/circulararcs.cpp
diff --git a/gm/circulararcs.cpp b/gm/circulararcs.cpp
index 2cb525cc2177f9255adbba3dec83584dbd39597d..290390a47ff930547f8d88fcdc8f2350ac9b0bf4 100644
--- a/gm/circulararcs.cpp
+++ b/gm/circulararcs.cpp
@@ -102,7 +102,23 @@ DEF_ARC_GM(stroke_round) {
draw_arcs(canvas, setStroke);
}
-DEF_ARC_GM(fill_and_Stroke) {
+DEF_ARC_GM(stroke_and_fill_butt) {
+ auto setStroke = [] (SkPaint* p) {
+ p->setStyle(SkPaint::kStrokeAndFill_Style);
+ p->setStrokeCap(SkPaint::kButt_Cap);
+ };
+ draw_arcs(canvas, setStroke);
+}
+
+DEF_ARC_GM(stroke_and_fill_square) {
+ auto setStroke = [] (SkPaint* p) {
+ p->setStyle(SkPaint::kStrokeAndFill_Style);
+ p->setStrokeCap(SkPaint::kSquare_Cap);
+ };
+ draw_arcs(canvas, setStroke);
+}
+
+DEF_ARC_GM(stroke_and_fill_round) {
auto setStroke = [] (SkPaint* p) {
p->setStyle(SkPaint::kStrokeAndFill_Style);
p->setStrokeCap(SkPaint::kRound_Cap);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698