Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Unified Diff: src/gpu/SkGpuDevice.cpp

Issue 21496003: Revert "Don't call SkGpuDevice::drawVertices from drawPoints when AA is required." (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/SkGpuDevice.cpp
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index f0206d69c05e44d2e68f66a440da57553cdb05d4..61de9822f48ed44770b86534ae0da1906ca270a7 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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698