Index: bench/PDFBench.cpp |
diff --git a/bench/PDFBench.cpp b/bench/PDFBench.cpp |
index 19f8e2f8cd061bca7c06710b01374a2e778a88f0..5b33e8ca152d2d1c9b4d8bf3e2c61819e1c76ae9 100644 |
--- a/bench/PDFBench.cpp |
+++ b/bench/PDFBench.cpp |
@@ -137,8 +137,9 @@ protected: |
SkASSERT(fAsset); |
if (!fAsset) { return; } |
while (loops-- > 0) { |
- sk_sp<SkPDFObject> object( |
- new SkPDFSharedStream(fAsset->duplicate())); |
+ sk_sp<SkPDFObject> object = |
+ sk_make_sp<SkPDFSharedStream>( |
+ std::unique_ptr<SkStreamAsset>(fAsset->duplicate())); |
test_pdf_object_serialization(object); |
} |
} |