Index: src/effects/SkAlphaThresholdFilter.cpp |
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp |
index 317f6f09ecfaf2639e4be0290965f56a05c8781f..890cb71b516b53c8611e0e34067bb503fcabb0fd 100644 |
--- a/src/effects/SkAlphaThresholdFilter.cpp |
+++ b/src/effects/SkAlphaThresholdFilter.cpp |
@@ -290,15 +290,11 @@ bool SkAlphaThresholdFilterImpl::asFragmentProcessor(GrFragmentProcessor** fp, |
SkRegion::Iterator iter(fRegion); |
context->clear(NULL, 0x0, true, maskTexture->asRenderTarget()); |
- SkMatrix old_matrix = context->getMatrix(); |
- context->setMatrix(in_matrix); |
- |
while (!iter.done()) { |
SkRect rect = SkRect::Make(iter.rect()); |
- context->drawRect(grPaint, rect); |
+ context->drawRect(grPaint, in_matrix, rect); |
iter.next(); |
} |
- context->setMatrix(old_matrix); |
} |
*fp = AlphaThresholdEffect::Create(texture, |