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
This commit is contained in:
bsalomon 2016-08-22 13:10:46 -07:00 committed by Commit bot
parent 4d2cce442d
commit 4c261d0c1e

View File

@ -102,7 +102,23 @@ DEF_ARC_GM(stroke_round) {
draw_arcs(canvas, setStroke); 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) { auto setStroke = [] (SkPaint* p) {
p->setStyle(SkPaint::kStrokeAndFill_Style); p->setStyle(SkPaint::kStrokeAndFill_Style);
p->setStrokeCap(SkPaint::kRound_Cap); p->setStrokeCap(SkPaint::kRound_Cap);