Index: src/gpu/batches/GrStencilAndCoverPathRenderer.cpp |
diff --git a/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp b/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp |
index 848c82104d6438dd3421f288a119e778f1c8a738..6abe41e997705129d16d429fdb2b416552ffce70 100644 |
--- a/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp |
+++ b/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp |
@@ -16,6 +16,7 @@ |
#include "GrRenderTarget.h" |
#include "GrResourceProvider.h" |
#include "GrStrokeInfo.h" |
+#include "batches/GrRectBatchFactory.h" |
GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider, |
const GrCaps& caps) { |
@@ -121,7 +122,11 @@ bool GrStencilAndCoverPathRenderer::onDrawPath(const DrawPathArgs& args) { |
if (pipelineBuilder->getRenderTarget()->hasMixedSamples()) { |
pipelineBuilder->disableState(GrPipelineBuilder::kHWAntialias_Flag); |
} |
- args.fTarget->drawNonAARect(*pipelineBuilder, args.fColor, viewM, bounds, invert); |
+ |
+ SkAutoTUnref<GrDrawBatch> batch( |
+ GrRectBatchFactory::CreateNonAAFill(args.fColor, viewM, bounds, nullptr, |
+ &invert)); |
+ args.fTarget->drawBatch(*pipelineBuilder, batch); |
} else { |
GR_STATIC_CONST_SAME_STENCIL(kStencilPass, |
kZero_StencilOp, |