Add cap type variations to circular arcs GMs
BUG=skia:5227
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2269723002
Review-Url: https://codereview.chromium.org/2269723002
diff --git a/gm/circulararcs.cpp b/gm/circulararcs.cpp
index 2cb525c..290390a 100644
--- a/gm/circulararcs.cpp
+++ b/gm/circulararcs.cpp
@@ -102,7 +102,23 @@
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);