Index: src/gpu/GrDrawContext.cpp |
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp |
index 64ce0cec3134295cc3b4f5fca5a1e1ba789423ed..660b664f821bb5722cea2a6db09fddb5b275267c 100644 |
--- a/src/gpu/GrDrawContext.cpp |
+++ b/src/gpu/GrDrawContext.cpp |
@@ -422,14 +422,12 @@ void GrDrawContextPriv::stencilRect(const GrFixedClip& clip, |
paint.setAntiAlias(doAA); |
paint.setXPFactory(GrDisableColorXPFactory::Make()); |
- bool useHWAA; |
- SkAutoTUnref<GrDrawBatch> batch( |
- fDrawContext->getFillRectBatch(paint, viewMatrix, rect, &useHWAA)); |
- SkASSERT(batch); |
- |
- GrPipelineBuilder pipelineBuilder(paint, useHWAA); |
+ GrPipelineBuilder pipelineBuilder(paint, doAA && fDrawContext->isStencilBufferMultisampled()); |
pipelineBuilder.setUserStencil(ss); |
+ SkAutoTUnref<GrDrawBatch> batch( |
+ GrRectBatchFactory::CreateNonAAFill(SK_ColorWHITE, viewMatrix, rect, nullptr, nullptr)); |
+ |
fDrawContext->getDrawTarget()->drawBatch(pipelineBuilder, fDrawContext, clip, batch); |
} |