From 9eb96975f8136c09eedaac44be0186b12093654b Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Thu, 8 Nov 2012 13:46:32 +0000 Subject: 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 --- samplecode/SamplePictFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3