| Index: samplecode/SamplePicture.cpp
|
| diff --git a/samplecode/SamplePicture.cpp b/samplecode/SamplePicture.cpp
|
| index 767fd617a34e3db8f792487493db806cda0f1f20..af06e823b8d500cbe91a5f745dbbf754a554ce58 100644
|
| --- a/samplecode/SamplePicture.cpp
|
| +++ b/samplecode/SamplePicture.cpp
|
| @@ -40,8 +40,7 @@
|
| SkString path = SkOSPath::SkPathJoin(directory.c_str(), "mandrill_512.png");
|
| SkAutoDataUnref data(SkData::NewFromFileName(path.c_str()));
|
| if (data.get() != NULL) {
|
| - SkInstallDiscardablePixelRef(SkDecodingImageGenerator::Create(
|
| - data, SkDecodingImageGenerator::Options()), &bm, NULL);
|
| + SkDecodingImageGenerator::Install(data.get(), &bm);
|
| }
|
| return bm;
|
| }
|
|
|