Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: tools/fiddle/fiddle_main.cpp

Issue 2333713002: change SkStreams to work with sk_sp<SkData> instead of SkData* (Closed)
Patch Set: fix xpsdevice Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/debugger/SkDrawCommand.cpp ('k') | tools/get_images_from_skps.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « tools/debugger/SkDrawCommand.cpp ('k') | tools/get_images_from_skps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698