DescriptionFix an assert statement in SkPngCodec
allRowsCallback was asserting that
rowNum - fFirstRow == fLinesDecoded
But it was expecting fFirstRow to be 0 (logically, it is, since we are
decoding all rows), and it never set it (because it doesn't really need
to, except for this assert). This is only a problem if we reuse an
SkPngCodec after previously scaling with it. Add a test that triggers
the assert, and fix it.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2401133002
Committed: https://skia.googlesource.com/skia/+/c46cdd48eb0d04f54ecad8ecfa7b3158090c3a0a
Patch Set 1 #Patch Set 2 : Remove printf #Patch Set 3 : Set fFirstRow and fLastRow #
Dependent Patchsets: Messages
Total messages: 10 (5 generated)
|