Fix BMP RLE bug

decodeRows() should return an int, not an SkCodec::Result

BUG=skia:

Review URL: https://codereview.chromium.org/1457793003
This commit is contained in:
msarett 2015-11-18 11:43:08 -08:00 committed by Commit bot
parent 15d5b82f90
commit bc890c8490

View File

@ -349,7 +349,7 @@ int SkBmpRLECodec::decodeRows(const SkImageInfo& info, void* dst, size_t dstRowB
y++;
break;
case RLE_EOF:
return kSuccess;
return y;
case RLE_DELTA: {
// Two bytes are needed to specify delta
if ((int) fRLEBytes - fCurrRLEByte < 2) {