diff options
Diffstat (limited to 'src/gpu/GrSWMaskHelper.cpp')
-rw-r--r-- | src/gpu/GrSWMaskHelper.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp index 61e7f1f960..b64d37bdb8 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); } |