Index: gm/gmmain.cpp |
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp |
index ad7d55f0885048aedf546b69fdb959f2a170c6a1..8c015e7a15413689d97647498133ae49c1c76fbd 100644 |
--- a/gm/gmmain.cpp |
+++ b/gm/gmmain.cpp |
@@ -1025,10 +1025,7 @@ public: |
//@todo thudson 22 April 2011 when can we safely delete [] dst? |
storage.copyTo(dst); |
SkMemoryStream pictReadback(dst, streamSize); |
- bool success; |
- // Pass a decoding bitmap function so that the factory GM (which has an SkBitmap with |
- // encoded data) does not fail. |
- SkPicture* retval = new SkPicture (&pictReadback, &success, &SkImageDecoder::DecodeMemory); |
+ SkPicture* retval = SkPicture::CreateFromStream(&pictReadback); |
return retval; |
} |