diff options
author | 2013-08-01 17:30:32 +0000 | |
---|---|---|
committer | 2013-08-01 17:30:32 +0000 | |
commit | c048de0162da7ce03d0e1f32a340293b232c2ffb (patch) | |
tree | cffded041f9e5da3191816320b07c4935d3ae319 | |
parent | 3f2a2d5fdc833dd20900ee90249b03474d0e00b3 (diff) |
Don't call SkGpuDevice::drawVertices from drawPoints when AA is required.
R=jvanverth@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/12943007
git-svn-id: http://skia.googlecode.com/svn/trunk@10489 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 61de9822f4..f0206d69c0 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -598,9 +598,10 @@ void SkGpuDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, return; } - // we only handle hairlines and paints without path effects or mask filters, + // we only handle non-AA hairlines and paints without path effects or mask filters, // else we let the SkDraw call our drawPath() - if (width > 0 || paint.getPathEffect() || paint.getMaskFilter()) { + bool requiresAA = paint.isAntiAlias() && !fRenderTarget->isMultisampled(); + if (requiresAA || width > 0 || paint.getPathEffect() || paint.getMaskFilter()) { draw.drawPoints(mode, count, pts, paint, true); return; } |