diff options
Diffstat (limited to 'gm/cmykjpeg.cpp')
-rw-r--r-- | gm/cmykjpeg.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gm/cmykjpeg.cpp b/gm/cmykjpeg.cpp index a1a12dc388..5371fe2133 100644 --- a/gm/cmykjpeg.cpp +++ b/gm/cmykjpeg.cpp @@ -26,14 +26,8 @@ protected: // parameters to the "decode" call bool dither = false; - SkString resourcePath = GetResourcePath(); - if (!resourcePath.endsWith("/") && !resourcePath.endsWith("\\")) { - resourcePath.append("/"); - } - - resourcePath.append("CMYK.jpg"); - - SkFILEStream stream(resourcePath.c_str()); + SkString jpgFilename = GetResourcePath("CMYK.jpg"); + SkFILEStream stream(jpgFilename.c_str()); if (!stream.isValid()) { SkDebugf("Could not find CMYK.jpg, please set --resourcePath correctly.\n"); return; |