Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index ba2e6ccad1a2fb301e12bb87f5132ef1e4a261da..6500612a522b76d336d5820dc23eba751a4875dc 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -1379,7 +1379,7 @@ SkCanvas* SampleWindow::beforeChildren(SkCanvas* canvas) { |
#ifdef SK_BUILD_FOR_ANDROID |
name.prepend("/sdcard/"); |
#endif |
- fPDFDocument.reset(SkDocument::CreatePDF(name.c_str())); |
+ fPDFDocument = SkDocument::MakePDF(name.c_str()); |
canvas = fPDFDocument->beginPage(this->width(), this->height()); |
} else if (fSaveToSKP) { |
canvas = fRecorder.beginRecording(9999, 9999, nullptr, 0); |