Index: src/pdf/SkPDFDocument.cpp |
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp |
index 33f944c025369c70a9d20daaaa6ec8a5f4c8bbaa..66635a98fb43a02a2ae845acc586f3e0c2a6a52a 100644 |
--- a/src/pdf/SkPDFDocument.cpp |
+++ b/src/pdf/SkPDFDocument.cpp |
@@ -276,7 +276,7 @@ SkCanvas* SkPDFDocument::onBeginPage(SkScalar width, SkScalar height, |
SkISize pageSize = SkISize::Make( |
SkScalarRoundToInt(width), SkScalarRoundToInt(height)); |
sk_sp<SkPDFDevice> device( |
- SkPDFDevice::Create(pageSize, fRasterDpi, &fCanon)); |
+ SkPDFDevice::Create(pageSize, fRasterDpi, this)); |
fCanvas = sk_make_sp<SkPDFCanvas>(device); |
fPageDevices.push_back(std::move(device)); |
fCanvas->clipRect(trimBox); |