diff options
Diffstat (limited to 'gm/bug530095.cpp')
-rw-r--r-- | gm/bug530095.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gm/bug530095.cpp b/gm/bug530095.cpp index 690da3c9d0..76f6bc8f2e 100644 --- a/gm/bug530095.cpp +++ b/gm/bug530095.cpp @@ -46,3 +46,16 @@ DEF_SIMPLE_GM(bug530095, canvas, 900, 1200) { canvas->translate(4, 4); canvas->drawPath(path2, paint); } + +DEF_SIMPLE_GM(bug591993, canvas, 40, 140) { + SkPaint p; + p.setColor(SK_ColorRED); + p.setAntiAlias(true); + p.setStyle(SkPaint::kStroke_Style); + p.setStrokeCap(SkPaint::kRound_Cap); + p.setStrokeWidth(10); + SkScalar intervals[] = { 100, 100 }; + SkPathEffect* dash = SkDashPathEffect::Create(intervals, SK_ARRAY_COUNT(intervals), 100); + p.setPathEffect(dash)->unref(); + canvas->drawLine(20, 20, 120, 20, p); +} |