Index: src/image/SkImage.cpp |
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp |
index e8a3ead2b11a3015cae907cd7a014aac7051ea1f..ff0b8c981995a386c0a8a008e63fa5454361a323 100644 |
--- a/src/image/SkImage.cpp |
+++ b/src/image/SkImage.cpp |
@@ -76,7 +76,7 @@ SkImage* SkImage::NewFromEncoded(SkData* encoded, const SkIRect* subset) { |
if (NULL == encoded || 0 == encoded->size()) { |
return NULL; |
} |
- SkImageGenerator* generator = SkImageGenerator::NewFromData(encoded); |
+ SkImageGenerator* generator = SkImageGenerator::NewFromEncoded(encoded); |
return generator ? SkImage::NewFromGenerator(generator, subset) : NULL; |
} |