| Index: src/gpu/GrSWMaskHelper.cpp
|
| diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp
|
| index b6a7059192176adff5413dffcad2fe9ba5d12d4d..61e7f1f960ecceb901b75099141ec7f3bcae64f2 100644
|
| --- a/src/gpu/GrSWMaskHelper.cpp
|
| +++ b/src/gpu/GrSWMaskHelper.cpp
|
| @@ -361,20 +361,18 @@ void GrSWMaskHelper::DrawToTargetWithPathMask(GrTexture* texture,
|
| SK_Scalar1 * rect.fRight,
|
| SK_Scalar1 * rect.fBottom);
|
|
|
| - // We want to use device coords to compute the texture coordinates. We set our matrix to be
|
| - // equal to the view matrix followed by a translation so that the top-left of the device bounds
|
| - // maps to 0,0, and then a scaling matrix to normalized coords. We apply this matrix to the
|
| - // vertex positions rather than local coords.
|
| + // We use device coords to compute the texture coordinates. We take the device coords and apply
|
| + // a translation so that the top-left of the device bounds maps to 0,0, and then a scaling
|
| + // matrix to normalized coords.
|
| SkMatrix maskMatrix;
|
| maskMatrix.setIDiv(texture->width(), texture->height());
|
| maskMatrix.preTranslate(SkIntToScalar(-rect.fLeft), SkIntToScalar(-rect.fTop));
|
| - maskMatrix.preConcat(drawState->getViewMatrix());
|
|
|
| drawState->addCoverageProcessor(
|
| GrSimpleTextureEffect::Create(texture,
|
| maskMatrix,
|
| GrTextureParams::kNone_FilterMode,
|
| - kPosition_GrCoordSet))->unref();
|
| + kDevice_GrCoordSet))->unref();
|
|
|
| target->drawSimpleRect(drawState, color, dstRect);
|
| }
|
|
|