X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fskia%2Fgm%2Fcmykjpeg.cpp;h=5371fe2133b7111f79bcaa20c17335f5c6e5bb92;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=a1a12dc3885b41ce7e368c6830e1f0bd57800965;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/skia/gm/cmykjpeg.cpp b/src/third_party/skia/gm/cmykjpeg.cpp index a1a12dc..5371fe2 100644 --- a/src/third_party/skia/gm/cmykjpeg.cpp +++ b/src/third_party/skia/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;