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
This commit is contained in:
parent
3f2a2d5fdc
commit
c048de0162
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user