Benchmark results will now print to STDOUT if on not-Android.
Review URL: https://codereview.appspot.com/6446164
git-svn-id: http://skia.googlecode.com/svn/trunk@5215 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/picture_utils.cpp b/tools/picture_utils.cpp
index 26788ee..d38cbb0 100644
--- a/tools/picture_utils.cpp
+++ b/tools/picture_utils.cpp
@@ -70,10 +70,16 @@
return skString.endsWith("%");
}
+ // This copies how bench does printing of test results.
+#ifdef SK_BUILD_FOR_ANDROID
+ void print_msg(const char msg[]) { SkDebugf("%s", msg); }
+#else
+ void print_msg(const char msg[]) { printf("%s", msg); }
+#endif
+
void setup_bitmap(SkBitmap* bitmap, int width, int height) {
bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height);
bitmap->allocPixels();
bitmap->eraseColor(0);
}
-
}