aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-01 18:36:08 +0000
committerGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-01 18:36:08 +0000
commit24202c7a9aa81e3d85508267ced94697a38cdaf0 (patch)
treee359d5c43d5d61fb16a1d11d50ecece6a5713217
parent70c54b1a88d255cfbe8215194eff9db0180761f3 (diff)
Revert "Don't call SkGpuDevice::drawVertices from drawPoints when AA is required."
This reverts commit r10489. Review URL: https://codereview.chromium.org/21496003 git-svn-id: http://skia.googlecode.com/svn/trunk@10492 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/gpu/SkGpuDevice.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index f0206d69c0..61de9822f4 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -598,10 +598,9 @@ void SkGpuDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode,
return;
}
- // we only handle non-AA hairlines and paints without path effects or mask filters,
+ // we only handle hairlines and paints without path effects or mask filters,
// else we let the SkDraw call our drawPath()
- bool requiresAA = paint.isAntiAlias() && !fRenderTarget->isMultisampled();
- if (requiresAA || width > 0 || paint.getPathEffect() || paint.getMaskFilter()) {
+ if (width > 0 || paint.getPathEffect() || paint.getMaskFilter()) {
draw.drawPoints(mode, count, pts, paint, true);
return;
}