Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index d200e295fb3a4fbfb97414548cc03ab51d475938..c7a37e786cd6e163f7026a4f5a47684f29a5552b 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -1396,6 +1396,15 @@ void SampleWindow::afterChildren(SkCanvas* orig) { |
if (fUseMPD) { |
SkAutoTUnref<const SkPicture> picture(fRecorder.endRecording()); |
+ |
+ if (false) { |
+ SkDynamicMemoryWStream wstream; |
+ picture->serialize(&wstream); |
+ |
+ SkAutoTDelete<SkStream> rstream(wstream.detachAsStream()); |
+ picture.reset(SkPicture::CreateFromStream(rstream)); |
+ } |
+ |
if (true) { |
if (true) { |
SkImageInfo info; |