Index: tests/PDFJpegEmbedTest.cpp |
diff --git a/tests/PDFJpegEmbedTest.cpp b/tests/PDFJpegEmbedTest.cpp |
index 2dcbdd05d8469680a625eda0666f5ac735e8ad3b..5ef4a2dbfc3c2435b1f8fb27cf2bddbb8a48ea92 100644 |
--- a/tests/PDFJpegEmbedTest.cpp |
+++ b/tests/PDFJpegEmbedTest.cpp |
@@ -63,7 +63,7 @@ DEF_TEST(PDFJpegEmbedTest, r) { |
} |
//////////////////////////////////////////////////////////////////////////// |
SkDynamicMemoryWStream pdf; |
- SkAutoTUnref<SkDocument> document(SkDocument::CreatePDF(&pdf)); |
+ sk_sp<SkDocument> document(SkDocument::MakePDF(&pdf)); |
SkCanvas* canvas = document->beginPage(642, 1028); |
canvas->clear(SK_ColorLTGRAY); |
@@ -87,7 +87,7 @@ DEF_TEST(PDFJpegEmbedTest, r) { |
REPORTER_ASSERT(r, !is_subset_of(cmykData.get(), pdfData.get())); |
//////////////////////////////////////////////////////////////////////////// |
pdf.reset(); |
- document.reset(SkDocument::CreatePDF(&pdf)); |
+ document = SkDocument::MakePDF(&pdf); |
canvas = document->beginPage(642, 1028); |
canvas->clear(SK_ColorLTGRAY); |