Index: src/utils/SkLua.cpp |
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp |
index 11d9b2938c66afab3b6a837086a78dfdbeb58f03..922ca09b95b0cd55dc8d6d71a22859bf8010838a 100644 |
--- a/src/utils/SkLua.cpp |
+++ b/src/utils/SkLua.cpp |
@@ -1993,7 +1993,8 @@ static int lsk_newRasterSurface(lua_State* L) { |
int width = lua2int_def(L, 1, 0); |
int height = lua2int_def(L, 2, 0); |
SkImageInfo info = SkImageInfo::MakeN32Premul(width, height); |
- SkSurface* surface = SkSurface::NewRaster(info); |
+ SkSurfaceProps props(0, kUnknown_SkPixelGeometry); |
+ SkSurface* surface = SkSurface::NewRaster(info, &props); |
if (NULL == surface) { |
lua_pushnil(L); |
} else { |