Index: tests/PDFPrimitivesTest.cpp |
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp |
index 0664ef406524ca0eb9eea5f6cece4b48094a5c99..acfb2020972f516192adc7be770820e7dc5b98cb 100644 |
--- a/tests/PDFPrimitivesTest.cpp |
+++ b/tests/PDFPrimitivesTest.cpp |
@@ -100,9 +100,8 @@ static void TestPDFStream(skiatest::Reporter* reporter) { |
"can do something with it. With shorter strings, " |
"the short circuit logic cuts in and we end up " |
"with an uncompressed string."; |
- SkAutoDataUnref streamData2(SkData::NewWithCopy(streamBytes2, |
- strlen(streamBytes2))); |
- sk_sp<SkPDFStream> stream(new SkPDFStream(streamData2.get())); |
+ auto stream = sk_make_sp<SkPDFStream>( |
+ SkData::MakeWithCopy(streamBytes2, strlen(streamBytes2))); |
SkDynamicMemoryWStream compressedByteStream; |
SkDeflateWStream deflateWStream(&compressedByteStream); |