aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-08-22 13:10:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-22 13:10:46 -0700
commit4c261d0c1e46159d72b2a5351b3186f80bc69d91 (patch)
tree9d75c4eed01f2ebb0dc517866836a6352a211a6a /gm
parent4d2cce442dc2d5a7b35c0ed65c725d0686071e23 (diff)
Add cap type variations to circular arcs GMs
Diffstat (limited to 'gm')
-rw-r--r--gm/circulararcs.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/gm/circulararcs.cpp b/gm/circulararcs.cpp
index 2cb525cc21..290390a47f 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);