| Index: src/gpu/text/GrStencilAndCoverTextContext.cpp
|
| diff --git a/src/gpu/text/GrStencilAndCoverTextContext.cpp b/src/gpu/text/GrStencilAndCoverTextContext.cpp
|
| index 4d77b0e1a2efc94fff8a71ca08c8044b0101f652..ebf735a55e67443e19b022ee6f21c0fc4bac9ef4 100644
|
| --- a/src/gpu/text/GrStencilAndCoverTextContext.cpp
|
| +++ b/src/gpu/text/GrStencilAndCoverTextContext.cpp
|
| @@ -11,6 +11,7 @@
|
| #include "GrDrawContext.h"
|
| #include "GrPath.h"
|
| #include "GrPathRange.h"
|
| +#include "GrPipelineBuilder.h"
|
| #include "GrResourceProvider.h"
|
| #include "GrTextUtils.h"
|
| #include "SkAutoKern.h"
|
| @@ -642,8 +643,11 @@
|
| GrPathRendering::kWinding_FillType, glyphs, fInstanceData,
|
| bounds));
|
|
|
| - SkASSERT(drawContext->mustUseHWAA(grPaint) == grPaint.isAntiAlias());
|
| - drawContext->drawBatch(grPaint, clip, kCoverPass, batch);
|
| + GrPipelineBuilder pipelineBuilder(grPaint);
|
| + pipelineBuilder.setState(GrPipelineBuilder::kHWAntialias_Flag, grPaint.isAntiAlias());
|
| + pipelineBuilder.setUserStencil(&kCoverPass);
|
| +
|
| + drawContext->drawBatch(pipelineBuilder, clip, batch);
|
| }
|
|
|
| if (fFallbackTextBlob) {
|
|
|