Fix cmykjpeg test to check if file was found.
git-svn-id: http://skia.googlecode.com/svn/trunk@9314 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
6cab1a4b6a
commit
dc8e6e8503
@ -34,6 +34,11 @@ protected:
|
|||||||
filename.append("CMYK.jpg");
|
filename.append("CMYK.jpg");
|
||||||
|
|
||||||
SkFILEStream stream(filename.c_str());
|
SkFILEStream stream(filename.c_str());
|
||||||
|
if (!stream.isValid()) {
|
||||||
|
SkDebugf("Could not find CMYK.jpg, please set --resourcePath correctly.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SkImageDecoder* codec = SkImageDecoder::Factory(&stream);
|
SkImageDecoder* codec = SkImageDecoder::Factory(&stream);
|
||||||
if (codec) {
|
if (codec) {
|
||||||
stream.rewind();
|
stream.rewind();
|
||||||
|
Loading…
Reference in New Issue
Block a user