Index: tests/PDFPrimitivesTest.cpp |
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp |
index c719f488d2bb0d7a33366f1144bb4dadefb6d240..2d9468e7aa35ec6070434e959f0bfa4bc04a7c59 100644 |
--- a/tests/PDFPrimitivesTest.cpp |
+++ b/tests/PDFPrimitivesTest.cpp |
@@ -106,7 +106,7 @@ static void TestPDFStream(skiatest::Reporter* reporter) { |
compressedByteStream.writeToStream(&expected); |
compressedByteStream.reset(); |
expected.writeText("\nendstream"); |
- sk_sp<SkData> expectedResultData2(expected.copyToData()); |
+ sk_sp<SkData> expectedResultData2(expected.detachAsData()); |
SkString result = emit_to_string(*stream); |
#ifndef SK_PDF_LESS_COMPRESSION |
assert_eql(reporter, |