Index: bench/SkipZeroesBench.cpp |
diff --git a/bench/SkipZeroesBench.cpp b/bench/SkipZeroesBench.cpp |
index fc25f8b074fef6b68811beaabfe6f926565e9c4e..5d18264ea13df86080f721ceb2219abe5e2d511a 100644 |
--- a/bench/SkipZeroesBench.cpp |
+++ b/bench/SkipZeroesBench.cpp |
@@ -83,15 +83,15 @@ protected: |
// Decode a bunch of times |
SkBitmap bm; |
for (int i = 0; i < loops; ++i) { |
- SkDEBUGCODE(bool success =) fDecoder->decode(&fStream, &bm, |
- SkImageDecoder::kDecodePixels_Mode); |
+ SkDEBUGCODE(SkImageDecoder::Result result =) fDecoder->decode(&fStream, &bm, |
+ SkImageDecoder::kDecodePixels_Mode); |
#ifdef SK_DEBUG |
- if (!success) { |
+ if (SkImageDecoder::kFailure == result) { |
SkDebugf("failed to decode %s\n", fFilename.c_str()); |
return; |
} |
#endif |
- SkDEBUGCODE(success =) fStream.rewind(); |
+ SkDEBUGCODE(bool success =) fStream.rewind(); |
#ifdef SK_DEBUG |
if (!success) { |
SkDebugf("failed to rewind %s\n", fFilename.c_str()); |