Index: dm/DMUtil.cpp |
diff --git a/dm/DMUtil.cpp b/dm/DMUtil.cpp |
index 23634c30ad26ebbb12815d920c2eac026095f968..94fdd6ec88fc46eba08c82b95969b3db37de0fa8 100644 |
--- a/dm/DMUtil.cpp |
+++ b/dm/DMUtil.cpp |
@@ -12,6 +12,14 @@ SkString UnderJoin(const char* a, const char* b) { |
return s; |
} |
+SkString FileToTaskName(SkString filename) { |
+ for (size_t i = 0; i < filename.size(); i++) { |
+ if ('_' == filename[i]) { filename[i] = '-'; } |
+ if ('.' == filename[i]) { filename[i] = '_'; } |
+ } |
+ return filename; |
+} |
+ |
SkPicture* RecordPicture(skiagm::GM* gm, uint32_t recordFlags, SkBBHFactory* factory) { |
const SkISize size = gm->getISize(); |
SkPictureRecorder recorder; |