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

Unified Diff: src/gpu/SkGpuDevice.cpp

Issue 12943007: Don't call SkGpuDevice::drawVertices from drawPoints when AA is required. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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
===================================================================
--- src/gpu/SkGpuDevice.cpp (revision 8252)
+++ src/gpu/SkGpuDevice.cpp (working copy)
@@ -605,9 +605,10 @@
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;
}
« 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