Index: tools/LazyDecodeBitmap.cpp |
diff --git a/tools/LazyDecodeBitmap.cpp b/tools/LazyDecodeBitmap.cpp |
index 83fca5f3b28fd1c0d332e2ae5967bc4506653fcb..9a4a36ffe85914360ff2db49af5701d574516382 100644 |
--- a/tools/LazyDecodeBitmap.cpp |
+++ b/tools/LazyDecodeBitmap.cpp |
@@ -31,11 +31,10 @@ |
return false; |
} |
- SkAutoTDelete<SkImageGenerator> gen( |
- SkDecodingImageGenerator::Create( |
- data, SkDecodingImageGenerator::Options())); |
+ SkAutoTDelete<SkImageGenerator> gen(SkNEW_ARGS(SkDecodingImageGenerator, |
+ (data))); |
SkImageInfo info; |
- if ((NULL == gen.get()) || !gen->getInfo(&info)) { |
+ if (!gen->getInfo(&info)) { |
return false; |
} |
SkDiscardableMemory::Factory* pool = NULL; |