Index: tools/render_pictures_main.cpp |
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp |
index e054acf67d797c74477ad05226c8a5bfc2638689..8a5c7713a2a040b5f1a20f5bbc8b1db94c8c143d 100644 |
--- a/tools/render_pictures_main.cpp |
+++ b/tools/render_pictures_main.cpp |
@@ -143,8 +143,7 @@ static bool render_picture_internal(const SkString& inputPath, const SkString* w |
const SkString* mismatchPath, |
sk_tools::PictureRenderer& renderer, |
SkBitmap** out) { |
- SkString inputFilename; |
- sk_tools::get_basename(&inputFilename, inputPath); |
+ SkString inputFilename = SkOSPath::SkBasename(inputPath.c_str()); |
SkString writePathString; |
if (NULL != writePath && writePath->size() > 0 && !FLAGS_writeEncodedImages) { |
writePathString.set(*writePath); |
@@ -353,8 +352,7 @@ static bool render_picture(const SkString& inputPath, const SkString* writePath, |
if (FLAGS_writeWholeImage) { |
sk_tools::force_all_opaque(*bitmap); |
- SkString inputFilename; |
- sk_tools::get_basename(&inputFilename, inputPath); |
+ SkString inputFilename = SkOSPath::SkBasename(inputPath.c_str()); |
SkString outputFilename(inputFilename); |
sk_tools::replace_char(&outputFilename, '.', '_'); |
outputFilename.append(".png"); |