Index: src/gpu/GrStencilAndCoverPathRenderer.cpp |
diff --git a/src/gpu/GrStencilAndCoverPathRenderer.cpp b/src/gpu/GrStencilAndCoverPathRenderer.cpp |
index aed1743af22216864a2aa2382a2ea724cc0c82a9..1f9144908b4477e73248bb58914bb054ad843950 100644 |
--- a/src/gpu/GrStencilAndCoverPathRenderer.cpp |
+++ b/src/gpu/GrStencilAndCoverPathRenderer.cpp |
@@ -59,7 +59,8 @@ bool GrStencilAndCoverPathRenderer::canDrawPath(const GrDrawTarget* target, |
const SkStrokeRec& stroke, |
bool antiAlias) const { |
return !stroke.isHairlineStyle() && |
- !antiAlias && // doesn't do per-path AA, relies on the target having MSAA |
+ (!antiAlias || // doesn't do per-path AA, relies on the target having MSAA |
+ pipelineBuilder->getRenderTarget()->isMultisampled(kStencil_GrSampleConfig)) && |
pipelineBuilder->getStencil().isDisabled(); |
} |
@@ -101,7 +102,8 @@ bool GrStencilAndCoverPathRenderer::onDrawPath(GrDrawTarget* target, |
const SkPath& path, |
const SkStrokeRec& stroke, |
bool antiAlias) { |
- SkASSERT(!antiAlias); |
+ SkASSERT(!antiAlias || |
+ pipelineBuilder->getRenderTarget()->isMultisampled(kStencil_GrSampleConfig)); |
SkASSERT(!stroke.isHairlineStyle()); |
SkASSERT(pipelineBuilder->getStencil().isDisabled()); |