| Index: src/gpu/SkGpuDevice.cpp
|
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
|
| index 288ea5ae6d13f61e3cffc54f0ea54856b66dbca7..11a79dbe7dc3f6ef23015a921d80ea39ae65b8de 100644
|
| --- a/src/gpu/SkGpuDevice.cpp
|
| +++ b/src/gpu/SkGpuDevice.cpp
|
| @@ -386,9 +386,14 @@ void SkGpuDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode,
|
| }
|
|
|
| if (paint.getPathEffect() && 2 == count && SkCanvas::kLines_PointMode == mode) {
|
| - if (GrDashingEffect::DrawDashLine(pts, paint, this->context())) {
|
| - return;
|
| - }
|
| + GrStrokeInfo strokeInfo(paint, SkPaint::kStroke_Style);
|
| + GrPaint grPaint;
|
| + SkPaint2GrPaintShader(this->context(), paint, true, &grPaint);
|
| + SkPath path;
|
| + path.moveTo(pts[0]);
|
| + path.lineTo(pts[1]);
|
| + fContext->drawPath(grPaint, path, strokeInfo);
|
| + return;
|
| }
|
|
|
| // we only handle hairlines and paints without path effects or mask filters,
|
|
|