Index: src/utils/SkLua.cpp |
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp |
index 11d9b2938c66afab3b6a837086a78dfdbeb58f03..cee4d4ded8eb13026f7defc59c65ecc1129efed4 100644 |
--- a/src/utils/SkLua.cpp |
+++ b/src/utils/SkLua.cpp |
@@ -2007,7 +2007,7 @@ static int lsk_loadImage(lua_State* L) { |
const char* name = lua_tolstring(L, 1, NULL); |
SkAutoDataUnref data(SkData::NewFromFileName(name)); |
if (data.get()) { |
- SkImage* image = SkImage::NewFromData(data); |
+ SkImage* image = SkImage::NewFromEncoded(data); |
if (image) { |
push_ref(L, image)->unref(); |
return 1; |