Index: gm/gm_expectations.cpp |
diff --git a/gm/gm_expectations.cpp b/gm/gm_expectations.cpp |
index 08461bd901265beda94dbf4163e633551d00f618..2f921201fa6e0f8ffd59af5472eafba9f70ea409 100644 |
--- a/gm/gm_expectations.cpp |
+++ b/gm/gm_expectations.cpp |
@@ -37,15 +37,6 @@ namespace skiagm { |
va_end(args); |
} |
- SkString SkPathJoin(const char *rootPath, const char *relativePath) { |
- SkString result(rootPath); |
- if (!result.endsWith(SkPATH_SEPARATOR)) { |
- result.appendUnichar(SkPATH_SEPARATOR); |
- } |
- result.append(relativePath); |
- return result; |
- } |
- |
Json::Value CreateJsonTree(Json::Value expectedResults, |
Json::Value actualResultsFailed, |
Json::Value actualResultsFailureIgnored, |
@@ -194,7 +185,7 @@ namespace skiagm { |
// IndividualImageExpectationsSource class... |
Expectations IndividualImageExpectationsSource::get(const char *testName) { |
- SkString path = SkPathJoin(fRootDir.c_str(), testName); |
+ SkString path = SkOSPath::SkPathJoin(fRootDir.c_str(), testName); |
SkBitmap referenceBitmap; |
bool decodedReferenceBitmap = |
SkImageDecoder::DecodeFile(path.c_str(), &referenceBitmap, |