aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skhello.cpp
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-04-15 14:28:24 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-04-15 14:28:24 +0000
commitfd9714e5bdcc9ecf873db45d9287e303b59678d2 (patch)
tree5fba6101dc8546003bc45afbd3f012b58396fc6c /tools/skhello.cpp
parentdfee579a8de6462399f1b1867f924856c11bc4a1 (diff)
add png to makefile for linux
git-svn-id: http://skia.googlecode.com/svn/trunk@551 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/skhello.cpp')
-rw-r--r--tools/skhello.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index 6f56d4c0e9..179c3da61f 100644
--- a/tools/skhello.cpp
+++ b/tools/skhello.cpp
@@ -57,9 +57,11 @@ int main (int argc, char * const argv[]) {
SkIntToScalar(w)/2, SkIntToScalar(h)*2/3,
paint);
- SkImageEncoder::EncodeFile(path.c_str(), bitmap,
+ bool success = SkImageEncoder::EncodeFile(path.c_str(), bitmap,
SkImageEncoder::kPNG_Type, 100);
-
- return 0;
+ if (!success) {
+ SkDebugf("--- failed to write %s\n", path.c_str());
+ }
+ return !success;
}