Update SampleApp to handle PNG encoded skps
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 8 Nov 2012 13:46:32 +0000 (13:46 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 8 Nov 2012 13:46:32 +0000 (13:46 +0000)
https://codereview.appspot.com/6816105/

git-svn-id: http://skia.googlecode.com/svn/trunk@6347 2bbb7eff-a529-9590-31e7-b0007b416f81

samplecode/SamplePictFile.cpp

index 014ae93..ce80949 100644 (file)
@@ -45,7 +45,8 @@ class PictFileView : public SampleView {
         } else {
             SkFILEStream stream(path);
             if (stream.isValid()) {
-                pic = SkNEW_ARGS(SkPicture, (&stream));
+                pic = SkNEW_ARGS(SkPicture, 
+                                 (&stream, NULL, &SkImageDecoder::DecodeStream));
             }
 
             if (false) { // re-record