Index: samplecode/SampleUnpremul.cpp |
diff --git a/samplecode/SampleUnpremul.cpp b/samplecode/SampleUnpremul.cpp |
index 992444d05d060a426ec49f39afa24c2249d215e7..ffe4428b484949bce73e5214394489fd2500c045 100644 |
--- a/samplecode/SampleUnpremul.cpp |
+++ b/samplecode/SampleUnpremul.cpp |
@@ -182,7 +182,7 @@ private: |
decoder->setRequireUnpremultipliedColors(true); |
} |
fDecodeSucceeded = decoder->decode(&stream, &fBitmap, kN32_SkColorType, |
- SkImageDecoder::kDecodePixels_Mode); |
+ SkImageDecoder::kDecodePixels_Mode) != SkImageDecoder::kFailure; |
this->inval(NULL); |
} |