From 163b56734fe01c088581895a8e0b65ddf1cb4fa5 Mon Sep 17 00:00:00 2001 From: "keyar@chromium.org" Date: Wed, 1 Aug 2012 17:53:29 +0000 Subject: 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 --- tools/picture_utils.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/picture_utils.cpp') 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(); -- cgit v1.2.3