[PDF] clear() and drawPaint() where applying the initial transform twice.
BUG=b/10845219
R=edisonn@google.com, djsollen@google.com
Author: vandebo@chromium.org
Review URL: https://chromiumcodereview.appspot.com/24130010
git-svn-id: http://skia.googlecode.com/svn/trunk@11420 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index e80984e..d13d30c 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -786,10 +786,8 @@
}
SkRect bbox = SkRect::MakeWH(SkIntToScalar(this->width()),
SkIntToScalar(this->height()));
- SkMatrix totalTransform = fInitialTransform;
- totalTransform.preConcat(contentEntry->fState.fMatrix);
SkMatrix inverse;
- if (!totalTransform.invert(&inverse)) {
+ if (!contentEntry->fState.fMatrix.invert(&inverse)) {
return;
}
inverse.mapRect(&bbox);