diff options
author | keyar@chromium.org <keyar@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-01 17:53:29 +0000 |
---|---|---|
committer | keyar@chromium.org <keyar@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-01 17:53:29 +0000 |
commit | 163b56734fe01c088581895a8e0b65ddf1cb4fa5 (patch) | |
tree | ac94dee645bbbe5d4ac4c83649f850f823598465 /tools/picture_utils.cpp | |
parent | 92b11f610376dea7192ade22dde31c8bb8ede76c (diff) |
Merged bench_pictures and render_pictures rendering methods.
bench_pictures now uses a class based method for choosing the benchmark type as well.
Review URL: https://codereview.appspot.com/6452070
git-svn-id: http://skia.googlecode.com/svn/trunk@4894 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/picture_utils.cpp')
-rw-r--r-- | tools/picture_utils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/picture_utils.cpp b/tools/picture_utils.cpp index 28e6293d2f..26788ee1ed 100644 --- a/tools/picture_utils.cpp +++ b/tools/picture_utils.cpp @@ -65,6 +65,11 @@ namespace sk_tools { basename->set(path.c_str(), end + 1); } + bool is_percentage(char* const string) { + SkString skString(string); + return skString.endsWith("%"); + } + void setup_bitmap(SkBitmap* bitmap, int width, int height) { bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height); bitmap->allocPixels(); |