diff options
Diffstat (limited to 'src/gpu/GrSWMaskHelper.cpp')
-rw-r--r-- | src/gpu/GrSWMaskHelper.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp index 66d60ab956..602e84fbbd 100644 --- a/src/gpu/GrSWMaskHelper.cpp +++ b/src/gpu/GrSWMaskHelper.cpp @@ -11,7 +11,6 @@ #include "GrContext.h" #include "batches/GrDrawBatch.h" #include "GrDrawContext.h" -#include "GrPipelineBuilder.h" #include "GrShape.h" #include "SkDistanceFieldGen.h" @@ -181,18 +180,17 @@ void GrSWMaskHelper::DrawToTargetWithShapeMask(GrTexture* texture, maskMatrix.setIDiv(texture->width(), texture->height()); maskMatrix.preTranslate(SkIntToScalar(-rect.fLeft), SkIntToScalar(-rect.fTop)); - GrPipelineBuilder pipelineBuilder(paint, drawContext->mustUseHWAA(paint)); - pipelineBuilder.setUserStencil(&userStencilSettings); + SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(paint.getColor(), + SkMatrix::I(), + dstRect, nullptr, &invert)); - pipelineBuilder.addCoverageFragmentProcessor( + GrPaint newPaint(paint); + newPaint.addCoverageFragmentProcessor( GrSimpleTextureEffect::Make(texture, nullptr, maskMatrix, GrTextureParams::kNone_FilterMode, kDevice_GrCoordSet)); - SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(paint.getColor(), - SkMatrix::I(), - dstRect, nullptr, &invert)); - drawContext->drawBatch(pipelineBuilder, clip, batch); + drawContext->drawBatch(newPaint, clip, userStencilSettings, batch); } |