From: bsalomon@google.com Date: Mon, 18 Jun 2012 12:52:56 +0000 (+0000) Subject: GPU would ignore the path effect when its stroke is zero, fix it X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~15864 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b702c0fcc0d5c85cb326b38fd34d535b9352512e;p=platform%2Fupstream%2FlibSkiaSharp.git 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 --- 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; }