Index: src/gpu/GrSWMaskHelper.cpp |
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp |
index 496dadf7ca37eb0f2f4f28dd5d9fdf0bac730f85..0b3bdb22282c77d33a0897dc4a5dc11a3e9445d0 100644 |
--- a/src/gpu/GrSWMaskHelper.cpp |
+++ b/src/gpu/GrSWMaskHelper.cpp |
@@ -159,10 +159,9 @@ GrTexture* GrSWMaskHelper::DrawShapeMaskToTexture(GrTextureProvider* texProvider |
void GrSWMaskHelper::DrawToTargetWithShapeMask(GrTexture* texture, |
GrDrawContext* drawContext, |
- const GrPaint* paint, |
+ const GrPaint& paint, |
const GrUserStencilSettings* userStencilSettings, |
const GrClip& clip, |
- GrColor color, |
const SkMatrix& viewMatrix, |
const SkIRect& rect) { |
SkMatrix invert; |
@@ -182,7 +181,7 @@ 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)); |
+ GrPipelineBuilder pipelineBuilder(paint, drawContext->mustUseHWAA(paint)); |
pipelineBuilder.setUserStencil(userStencilSettings); |
pipelineBuilder.addCoverageFragmentProcessor( |
@@ -191,7 +190,8 @@ void GrSWMaskHelper::DrawToTargetWithShapeMask(GrTexture* texture, |
GrTextureParams::kNone_FilterMode, |
kDevice_GrCoordSet)); |
- SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, SkMatrix::I(), |
+ SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(paint.getColor(), |
+ SkMatrix::I(), |
dstRect, nullptr, &invert)); |
drawContext->drawBatch(pipelineBuilder, clip, batch); |
} |