Index: dm/DMSKPTask.cpp |
diff --git a/dm/DMSKPTask.cpp b/dm/DMSKPTask.cpp |
index 04c4184846e00fe1e84c5bb93c190c92a57785b5..760138f7c98a96d4b52ac5d5a424fcd6cdbfe3fc 100644 |
--- a/dm/DMSKPTask.cpp |
+++ b/dm/DMSKPTask.cpp |
@@ -5,17 +5,8 @@ |
namespace DM { |
-// foo_bar.skp -> foo-bar_skp |
-static SkString filename_to_task_name(SkString filename) { |
- for (size_t i = 0; i < filename.size(); i++) { |
- if ('_' == filename[i]) { filename[i] = '-'; } |
- if ('.' == filename[i]) { filename[i] = '_'; } |
- } |
- return filename; |
-} |
- |
SKPTask::SKPTask(Reporter* r, TaskRunner* tr, SkPicture* pic, SkString filename) |
- : CpuTask(r, tr), fPicture(SkRef(pic)), fName(filename_to_task_name(filename)) {} |
+ : CpuTask(r, tr), fPicture(SkRef(pic)), fName(FileToTaskName(filename)) {} |
void SKPTask::draw() { |
SkBitmap bitmap; |