aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-21 01:49:06 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-21 01:49:06 +0000
commitcef454e7b8e065096783c0f7922594bacaa39e92 (patch)
tree85d75591bc522c35f2eb9c25fd123ba311f9bc40
parent1f6aed0b1cf7bcb05b5b8ae588021aa7c70fb176 (diff)
printf name of picture *before* we try to scrape it.
git-svn-id: http://skia.googlecode.com/svn/trunk@9205 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--tools/lua/lua_pictures.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lua/lua_pictures.cpp b/tools/lua/lua_pictures.cpp
index ff8f5cffa5..4a805147a6 100644
--- a/tools/lua/lua_pictures.cpp
+++ b/tools/lua/lua_pictures.cpp
@@ -132,14 +132,14 @@ int tool_main(int argc, char** argv) {
sk_tools::make_filepath(&inputPath, inputAsSkString, inputFilename);
const char* path = inputPath.c_str();
- SkAutoTUnref<SkPicture> pic(load_picture(path));
+ SkDebugf("scraping %s\n", path);
+ SkAutoTUnref<SkPicture> pic(load_picture(path));
if (pic.get()) {
- SkDebugf("scraping %s\n", path);
SkLuaCanvas canvas(pic->width(), pic->height(), L.get(), "accumulate");
canvas.drawPicture(*pic);
} else {
- SkDebugf("failed to load %s\n", path);
+ SkDebugf("failed to load\n");
}
}
}