Report 0 rowsDecoded for no rows (SkPngCodec interlaced)
authorscroggo <scroggo@chromium.org>
Mon, 10 Oct 2016 14:17:32 +0000 (07:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 10 Oct 2016 14:17:32 +0000 (07:17 -0700)
commite61b3b4018a3e139e9ae19d2c47dc59deeaedd16
tree7cf305fbccbf5c04f9a9af333692664f53ae4c2a
parentc46cdd48eb0d04f54ecad8ecfa7b3158090c3a0a
Report 0 rowsDecoded for no rows (SkPngCodec interlaced)

incrementalDecode is supposed to report the number of rows decoded. It
failed to if none were decoded (for an interlaced png). Fix the bug and
add a test.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2402063002

Review-Url: https://codereview.chromium.org/2402063002
src/codec/SkPngCodec.cpp
tests/CodecTest.cpp