| Index: tools/LazyDecodeBitmap.cpp
|
| diff --git a/tools/LazyDecodeBitmap.cpp b/tools/LazyDecodeBitmap.cpp
|
| index ec275eacab4c92059f9b9bbc16e6860e63e0b7ca..0dca16b3f1bba7b2f5c3a3f0138f714b7875f064 100644
|
| --- a/tools/LazyDecodeBitmap.cpp
|
| +++ b/tools/LazyDecodeBitmap.cpp
|
| @@ -8,7 +8,6 @@
|
| #include "LazyDecodeBitmap.h"
|
|
|
| #include "SkData.h"
|
| -#include "SkDecodingImageGenerator.h"
|
| #include "SkDiscardableMemoryPool.h"
|
| #include "SkImageGeneratorPriv.h"
|
| #include "SkForceLinking.h"
|
| @@ -31,9 +30,7 @@ bool sk_tools::LazyDecodeBitmap(const void* src,
|
| return false;
|
| }
|
|
|
| - SkAutoTDelete<SkImageGenerator> gen(
|
| - SkDecodingImageGenerator::Create(
|
| - data, SkDecodingImageGenerator::Options()));
|
| + SkAutoTDelete<SkImageGenerator> gen(SkImageGenerator::NewFromData(data));
|
| SkImageInfo info;
|
| if ((NULL == gen.get()) || !gen->getInfo(&info)) {
|
| return false;
|
|
|