Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 288ea5ae6d13f61e3cffc54f0ea54856b66dbca7..cbc40006c5c7ac90141c78a5416432d3430040ac 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -386,9 +386,16 @@ 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; |
- } |
+ SkPaint p(paint); |
+ p.setStyle(SkPaint::kStroke_Style); |
+ GrStrokeInfo strokeInfo(p); |
bsalomon
2014/06/11 21:43:37
Do we need to construct this from a paint if we kn
egdaniel
2014/06/12 12:13:11
Added an optional parameter to ctor of strokeInfo
|
+ 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, |