diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-08 13:46:32 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-08 13:46:32 +0000 |
commit | 9eb96975f8136c09eedaac44be0186b12093654b (patch) | |
tree | a4342cc9d7804b7e57f75814bdcc84a0222ddd31 | |
parent | 72b2e6fff3f54c6aa80a98eab4c73f02a8cd450d (diff) |
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
-rw-r--r-- | samplecode/SamplePictFile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samplecode/SamplePictFile.cpp b/samplecode/SamplePictFile.cpp index 014ae93655..ce809492b8 100644 --- a/samplecode/SamplePictFile.cpp +++ b/samplecode/SamplePictFile.cpp @@ -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 |