Index: src/effects/SkBlurMaskFilter.cpp |
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp |
index b4c020f5e7bf385cce0847667d8c4f1e4b49d378..aa576697e3a8c85779b5864c409af4b22ddcb587 100644 |
--- a/src/effects/SkBlurMaskFilter.cpp |
+++ b/src/effects/SkBlurMaskFilter.cpp |
@@ -860,13 +860,13 @@ bool SkBlurMaskFilterImpl::directFilterMaskGPU(GrContext* context, |
return false; |
} |
- if (!grp->localCoordChangeInverse(viewMatrix)) { |
- return false; |
- } |
- |
grp->addCoverageProcessor(fp); |
- context->drawRect(*grp, SkMatrix::I(), rect); |
+ SkMatrix inverse; |
+ if (!viewMatrix.invert(&inverse)) { |
+ return false; |
+ } |
+ context->drawNonAARectWithLocalMatrix(*grp, SkMatrix::I(), rect, inverse); |
return true; |
} |
@@ -1142,13 +1142,13 @@ bool SkBlurMaskFilterImpl::directFilterRRectMaskGPU(GrContext* context, |
return false; |
} |
- if (!grp->localCoordChangeInverse(viewMatrix)) { |
- return false; |
- } |
- |
grp->addCoverageProcessor(fp); |
- context->drawRect(*grp, SkMatrix::I(), proxy_rect); |
+ SkMatrix inverse; |
+ if (!viewMatrix.invert(&inverse)) { |
+ return false; |
+ } |
+ context->drawNonAARectWithLocalMatrix(*grp, SkMatrix::I(), proxy_rect, inverse); |
return true; |
} |