diff options
author | 2013-11-26 22:06:12 +0000 | |
---|---|---|
committer | 2013-11-26 22:06:12 +0000 | |
commit | ca5bb87a31b8cfde73dfd7c554127ee9b3e1ab58 (patch) | |
tree | 78c15d3584564d64c43d1b81d4441de2e2c60949 /include | |
parent | d8f82a4c44b844fed98d3ecc0072e0626b06bb37 (diff) |
DM: write failed comparison mode .pngs one more level deep in the tree.
E.g. instead of having to compare
/tmp/dm/565/optimizations.png
vs.
/tmp/dm/replay/optimizations_565.png
it's now
/tmp/dm/565/optimizations.png
vs.
/tmp/dm/replay/565/optimizations.png
This lets working with skdiff go a lot more smoothly.
BUG=
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/88773002
git-svn-id: http://skia.googlecode.com/svn/trunk@12402 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkString.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkString.h b/include/core/SkString.h index 291bd65696..ce87312f12 100644 --- a/include/core/SkString.h +++ b/include/core/SkString.h @@ -11,6 +11,7 @@ #define SkString_DEFINED #include "SkScalar.h" +#include "SkTArray.h" #include <stdarg.h> @@ -244,4 +245,7 @@ template <> inline void SkTSwap(SkString& a, SkString& b) { a.swap(b); } +// Split str on any characters in delimiters into out. (Think, strtok with a sane API.) +void SkStrSplit(const char* str, const char* delimiters, SkTArray<SkString>* out); + #endif |