[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
This commit is contained in:
parent
c526c71acd
commit
d2cfa7422e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user