From bc890c84909535b4e3dc78337a9d52c82d527290 Mon Sep 17 00:00:00 2001 From: msarett Date: Wed, 18 Nov 2015 11:43:08 -0800 Subject: [PATCH] Fix BMP RLE bug decodeRows() should return an int, not an SkCodec::Result BUG=skia: Review URL: https://codereview.chromium.org/1457793003 --- src/codec/SkBmpRLECodec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codec/SkBmpRLECodec.cpp b/src/codec/SkBmpRLECodec.cpp index 32580c3fa5..2e04b8b7e6 100644 --- a/src/codec/SkBmpRLECodec.cpp +++ b/src/codec/SkBmpRLECodec.cpp @@ -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) {