Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Unified Diff: src/lazy/SkDiscardablePixelRef.cpp

Issue 1229933003: add runtime option to provide data->imagegenerator factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698