aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-08 13:46:32 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-08 13:46:32 +0000
commit9eb96975f8136c09eedaac44be0186b12093654b (patch)
treea4342cc9d7804b7e57f75814bdcc84a0222ddd31
parent72b2e6fff3f54c6aa80a98eab4c73f02a8cd450d (diff)
Update SampleApp to handle PNG encoded skps
-rw-r--r--samplecode/SamplePictFile.cpp3
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