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

Unified Diff: src/image/SkImage.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/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;
}

Powered by Google App Engine
This is Rietveld 408576698