Index: src/lazy/SkDiscardablePixelRef.cpp |
diff --git a/src/lazy/SkDiscardablePixelRef.cpp b/src/lazy/SkDiscardablePixelRef.cpp |
index 19bfc8ccc798b84cdbb7829b89d6f4dfe04fbd7d..4f9178e6e1e93c11f88db4761faf3e3e0680e182 100644 |
--- a/src/lazy/SkDiscardablePixelRef.cpp |
+++ b/src/lazy/SkDiscardablePixelRef.cpp |
@@ -150,6 +150,6 @@ bool SkInstallDiscardablePixelRef(SkImageGenerator* generator, SkBitmap* dst) { |
} |
bool SkInstallDiscardablePixelRef(SkData* encoded, SkBitmap* dst) { |
- SkImageGenerator* generator = SkImageGenerator::NewFromData(encoded); |
+ SkImageGenerator* generator = SkImageGenerator::NewFromEncoded(encoded); |
return generator ? SkInstallDiscardablePixelRef(generator, NULL, dst, NULL) : false; |
} |