Index: src/utils/SkLua.cpp |
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp |
index 2370b9925c59a82f43a6d86971dcc0164e035df9..ba79933c1873cff74d131931f11ce54c24d76563 100644 |
--- a/src/utils/SkLua.cpp |
+++ b/src/utils/SkLua.cpp |
@@ -14,7 +14,6 @@ |
#include "SkBlurImageFilter.h" |
#include "SkCanvas.h" |
#include "SkData.h" |
-#include "SkDecodingImageGenerator.h" |
#include "SkDocument.h" |
#include "SkGradientShader.h" |
#include "SkImage.h" |
@@ -2008,9 +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::NewFromGenerator( |
- SkDecodingImageGenerator::Create(data, SkDecodingImageGenerator::Options())); |
- |
+ SkImage* image = SkImage::NewFromData(data); |
if (image) { |
push_ref(L, image)->unref(); |
return 1; |