Index: tools/lua/lua_pictures.cpp |
diff --git a/tools/lua/lua_pictures.cpp b/tools/lua/lua_pictures.cpp |
index e19b7a314a6f7799173fdc289d7dd8833e649f96..635cf0bed0152b5626231b58de855ed619d3815a 100644 |
--- a/tools/lua/lua_pictures.cpp |
+++ b/tools/lua/lua_pictures.cpp |
@@ -154,7 +154,8 @@ int tool_main(int argc, char** argv) { |
SkAutoTUnref<SkPicture> pic(load_picture(path)); |
if (pic.get()) { |
SkAutoTUnref<SkLuaCanvas> canvas( |
- new SkLuaCanvas(pic->width(), pic->height(), |
+ new SkLuaCanvas(SkScalarCeilToInt(pic->cullRect().width()), |
+ SkScalarCeilToInt(pic->cullRect().height()), |
L.get(), gAccumulateFunc)); |
call_canvas(L.get(), canvas.get(), path, gStartCanvasFunc); |