commit | 9eb96975f8136c09eedaac44be0186b12093654b | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Nov 08 13:46:32 2012 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Nov 08 13:46:32 2012 +0000 |
tree | a4342cc9d7804b7e57f75814bdcc84a0222ddd31 | |
parent | 72b2e6fff3f54c6aa80a98eab4c73f02a8cd450d [diff] [blame] |
Update SampleApp to handle PNG encoded skps https://codereview.appspot.com/6816105/ git-svn-id: http://skia.googlecode.com/svn/trunk@6347 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SamplePictFile.cpp b/samplecode/SamplePictFile.cpp index 014ae93..ce80949 100644 --- a/samplecode/SamplePictFile.cpp +++ b/samplecode/SamplePictFile.cpp
@@ -45,7 +45,8 @@ } else { SkFILEStream stream(path); if (stream.isValid()) { - pic = SkNEW_ARGS(SkPicture, (&stream)); + pic = SkNEW_ARGS(SkPicture, + (&stream, NULL, &SkImageDecoder::DecodeStream)); } if (false) { // re-record