diff options
Diffstat (limited to 'src/pdf/SkPDFDevice.cpp')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index ff14c41fae..6e36fb3d82 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -819,7 +819,7 @@ void SkPDFDevice::internalDrawPathWithFilter(const SkClipStack& clipStack, // Must mask with a Form XObject. sk_sp<SkPDFDevice> maskDevice = this->makeCongruentDevice(); { - SkCanvas canvas(maskDevice.get()); + SkCanvas canvas(maskDevice); canvas.drawImage(mask, dstMaskBounds.x(), dstMaskBounds.y()); } if (!ctm.isIdentity() && paint->getShader()) { @@ -2098,7 +2098,7 @@ void SkPDFDevice::internalDrawImageRect(SkKeyedImage imageSubset, // Must mask with a Form XObject. sk_sp<SkPDFDevice> maskDevice = this->makeCongruentDevice(); { - SkCanvas canvas(maskDevice.get()); + SkCanvas canvas(maskDevice); if (paint.getMaskFilter()) { // This clip prevents the mask image shader from covering // entire device if unnecessary. |