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