| Index: tools/LazyDecodeBitmap.cpp
|
| diff --git a/tools/LazyDecodeBitmap.cpp b/tools/LazyDecodeBitmap.cpp
|
| index 9a4a36ffe85914360ff2db49af5701d574516382..5e913df074c67a3553cc480eabf6cbf57716968b 100644
|
| --- a/tools/LazyDecodeBitmap.cpp
|
| +++ b/tools/LazyDecodeBitmap.cpp
|
| @@ -31,10 +31,10 @@ bool sk_tools::LazyDecodeBitmap(const void* src,
|
| return false;
|
| }
|
|
|
| - SkAutoTDelete<SkImageGenerator> gen(SkNEW_ARGS(SkDecodingImageGenerator,
|
| - (data)));
|
| + SkAutoTDelete<SkImageGenerator> gen(
|
| + SkNewDecodingImageGenerator(data, SkDecoderOptions()));
|
| SkImageInfo info;
|
| - if (!gen->getInfo(&info)) {
|
| + if ((gen.get() != NULL) || !gen->getInfo(&info)) {
|
| return false;
|
| }
|
| SkDiscardableMemory::Factory* pool = NULL;
|
|
|