From b702c0fcc0d5c85cb326b38fd34d535b9352512e Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Mon, 18 Jun 2012 12:52:56 +0000 Subject: [PATCH] GPU would ignore the path effect when its stroke is zero, fix it Committed on behalf of Guanqun.Lu@gmail.com Review URL: http://codereview.appspot.com/6301092 git-svn-id: http://skia.googlecode.com/svn/trunk@4273 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/SkGpuDevice.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index d04a5a1..77a08ec 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -630,8 +630,9 @@ void SkGpuDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, return; } - // we only handle hairlines here, else we let the SkDraw call our drawPath() - if (width > 0) { + // we only handle hairlines and paints without path effects or mask filters, + // else we let the SkDraw call our drawPath() + if (width > 0 || paint.getPathEffect() || paint.getMaskFilter()) { draw.drawPoints(mode, count, pts, paint, true); return; } -- 2.7.4