| Index: gm/cmykjpeg.cpp
|
| diff --git a/gm/cmykjpeg.cpp b/gm/cmykjpeg.cpp
|
| index a1a12dc3885b41ce7e368c6830e1f0bd57800965..5371fe2133b7111f79bcaa20c17335f5c6e5bb92 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;
|
|
|