Index: tools/fiddle/fiddle_main.cpp |
diff --git a/tools/fiddle/fiddle_main.cpp b/tools/fiddle/fiddle_main.cpp |
index 0fa61586663073835e4317a9649d227d3d393089..f83026f8141b51a65de96ef6e7f0e048b9abf632 100644 |
--- a/tools/fiddle/fiddle_main.cpp |
+++ b/tools/fiddle/fiddle_main.cpp |
@@ -140,7 +140,7 @@ int main() { |
srand(0); |
draw(document->beginPage(options.size.width(), options.size.height())); |
document->close(); |
- pdfData.reset(pdfStream.copyToData()); |
+ pdfData = pdfStream.detachAsData(); |
} |
} |
if (options.skp) { |
@@ -152,7 +152,7 @@ int main() { |
auto picture = recorder.finishRecordingAsPicture(); |
SkDynamicMemoryWStream skpStream; |
picture->serialize(&skpStream); |
- skpData.reset(skpStream.copyToData()); |
+ skpData = skpStream.detachAsData(); |
} |
printf("{\n"); |