aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-20 18:58:30 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-20 18:58:30 +0000
commitd2cfa7422e2b0928970b3b0fa1abe1d73113fc1d (patch)
treefc3cccb50991735ce71680a2e71a9753a37643d2 /src/pdf
parentc526c71acdb7c8d1af7bf284954bfcd768111405 (diff)
[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
Diffstat (limited to 'src/pdf')
-rw-r--r--src/pdf/SkPDFDevice.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index e80984e942..d13d30cbfb 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -786,10 +786,8 @@ void SkPDFDevice::internalDrawPaint(const SkPaint& paint,
}
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);