Index: src/gpu/batches/GrStencilAndCoverPathRenderer.cpp |
diff --git a/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp b/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp |
index c96e2074c56136f2bbe04b16da979c16dcc10026..a11d2b468345120c3b499a5877aa812c016c2edd 100644 |
--- a/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp |
+++ b/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp |
@@ -135,6 +135,9 @@ bool GrStencilAndCoverPathRenderer::onDrawPath(const DrawPathArgs& args) { |
} |
} |
const SkMatrix& viewM = viewMatrix.hasPerspective() ? SkMatrix::I() : viewMatrix; |
+ if (pipelineBuilder->getRenderTarget()->hasMixedSamples()) { |
+ pipelineBuilder->disableState(GrPipelineBuilder::kHWAntialias_Flag); |
+ } |
args.fTarget->drawNonAARect(*pipelineBuilder, args.fColor, viewM, bounds, invert); |
Chris Dalton
2015/11/12 02:28:02
Is "drawNonAARect" more of a perf hint, that says
bsalomon
2015/11/12 16:39:32
It's supposed to be strict. It's often used to dra
|
} else { |
GR_STATIC_CONST_SAME_STENCIL(kStencilPass, |