Index: tools/render_pdfs_main.cpp |
diff --git a/tools/render_pdfs_main.cpp b/tools/render_pdfs_main.cpp |
index 7790e2a4e76f9a038f7a189015e69f5e23395af9..fd078d3901643222f2c8baf3a3eb7c4562ed7daa 100644 |
--- a/tools/render_pdfs_main.cpp |
+++ b/tools/render_pdfs_main.cpp |
@@ -149,8 +149,7 @@ static SkWStream* open_stream(const SkString& outputDir, |
*/ |
static bool render_pdf(const SkString& inputPath, const SkString& outputDir, |
sk_tools::PdfRenderer& renderer) { |
- SkString inputFilename; |
- sk_tools::get_basename(&inputFilename, inputPath); |
+ SkString inputFilename = SkOSPath::SkBasename(inputPath.c_str()); |
SkFILEStream inputStream; |
inputStream.setPath(inputPath.c_str()); |