diff options
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r-- | samples/pdfium_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index 47c8d5fe3f..149ebf793c 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -222,7 +222,7 @@ void WriteSkp(const char* pdf_name, int num, const void* recorder) { } SkPictureRecorder* r = (SkPictureRecorder*)recorder; - SkPicture* picture = r->endRecordingAsPicture(); + sk_sp<SkPicture> picture(r->finishRecordingAsPicture()); SkFILEWStream wStream(filename); picture->serialize(&wStream); } |