| Index: src/gpu/GrSWMaskHelper.cpp
|
| diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp
|
| index 61e7f1f960ecceb901b75099141ec7f3bcae64f2..b64d37bdb829f3cdfcf538c063ca791d6b420340 100644
|
| --- a/src/gpu/GrSWMaskHelper.cpp
|
| +++ b/src/gpu/GrSWMaskHelper.cpp
|
| @@ -350,10 +350,11 @@ void GrSWMaskHelper::DrawToTargetWithPathMask(GrTexture* texture,
|
| GrDrawState* drawState,
|
| GrColor color,
|
| const SkIRect& rect) {
|
| - GrDrawState::AutoViewMatrixRestore avmr;
|
| - if (!avmr.setIdentity(drawState)) {
|
| + SkMatrix invert;
|
| + if (!drawState->getViewMatrix().invert(&invert)) {
|
| return;
|
| }
|
| + GrDrawState::AutoViewMatrixRestore avmr(drawState);
|
| GrDrawState::AutoRestoreEffects are(drawState);
|
|
|
| SkRect dstRect = SkRect::MakeLTRB(SK_Scalar1 * rect.fLeft,
|
| @@ -374,5 +375,5 @@ void GrSWMaskHelper::DrawToTargetWithPathMask(GrTexture* texture,
|
| GrTextureParams::kNone_FilterMode,
|
| kDevice_GrCoordSet))->unref();
|
|
|
| - target->drawSimpleRect(drawState, color, dstRect);
|
| + target->drawRect(drawState, color, dstRect, NULL, &invert);
|
| }
|
|
|