Index: tools/render_pictures_main.cpp |
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp |
index 8a5c7713a2a040b5f1a20f5bbc8b1db94c8c143d..ec21cb7da3c5d6b251e40fb6af8af94bb8c4caf4 100644 |
--- a/tools/render_pictures_main.cpp |
+++ b/tools/render_pictures_main.cpp |
@@ -124,7 +124,7 @@ static bool write_image_to_file(const void* buffer, size_t size, SkBitmap* bitma |
SkString name = SkStringPrintf("%s_%d%s", gInputFileName.c_str(), gImageNo++, |
get_suffix_from_format(format)); |
SkString dir(FLAGS_writePath[0]); |
- sk_tools::make_filepath(&outPath, dir, name); |
+ outPath = SkOSPath::SkPathJoin(dir.c_str(), name.c_str()); |
SkFILEWStream fileStream(outPath.c_str()); |
if (!(fileStream.isValid() && fileStream.write(buffer, size))) { |
SkDebugf("Failed to write encoded data to \"%s\"\n", outPath.c_str()); |
@@ -386,9 +386,7 @@ static int process_input(const char* input, const SkString* writePath, |
SkDebugf("process_input, %s\n", input); |
if (iter.next(&inputFilename)) { |
do { |
- SkString inputPath; |
- SkString inputAsSkString(input); |
- sk_tools::make_filepath(&inputPath, inputAsSkString, inputFilename); |
+ SkString inputPath = SkOSPath::SkPathJoin(input, inputFilename.c_str()); |
if (!render_picture(inputPath, writePath, mismatchPath, renderer, jsonSummaryPtr)) { |
++failures; |
} |