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:
parent
4d2cce442d
commit
4c261d0c1e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user