diff options
-rw-r--r-- | src/gpu/GrDefaultPathRenderer.cpp | 2 | ||||
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.cpp | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/gpu/GrDefaultPathRenderer.cpp b/src/gpu/GrDefaultPathRenderer.cpp index 01e1a94adc..bd9b1ea16a 100644 --- a/src/gpu/GrDefaultPathRenderer.cpp +++ b/src/gpu/GrDefaultPathRenderer.cpp @@ -513,7 +513,7 @@ bool GrDefaultPathRenderer::canDrawPath(const SkPath& path, bool antiAlias) const { // this class can draw any path with any fill but doesn't do any anti-aliasing. - return !antiAlias && + return !antiAlias && !(SkPath::kConic_SegmentMask & path.getSegmentMasks()) && (stroke.isFillStyle() || IsStrokeHairlineOrEquivalent(stroke, target->getDrawState().getViewMatrix(), NULL)); } diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp index d0936d6b28..bca2c66b37 100644 --- a/src/gpu/GrSoftwarePathRenderer.cpp +++ b/src/gpu/GrSoftwarePathRenderer.cpp @@ -15,13 +15,7 @@ bool GrSoftwarePathRenderer::canDrawPath(const SkPath&, const SkStrokeRec&, const GrDrawTarget*, bool antiAlias) const { - if (!antiAlias || NULL == fContext) { - // TODO: We could allow the SW path to also handle non-AA paths but - // this would mean that GrDefaultPathRenderer would never be called - // (since it appears after the SW renderer in the path renderer - // chain). Some testing would need to be done r.e. performance - // and consistency of the resulting images before removing - // the "!antiAlias" clause from the above test + if (NULL == fContext) { return false; } |