DescriptionUpdate Subset benches to support interlacing and fix bugs
Instead of decoding one line at a time, if the ScanlineOrder is kNone,
decode all of the lines in one pass, and then copy the subset into the
output. This will allow us to more realistically test subset decodes
for interlaced png. It also makes running them not take forever.
Do *not* support other modes (besides kTopDown), since they are not
used by the big three we need to replace BitmapRegionDecoder
implementation (skbug.com/4428).
Fix a bug in SubsetTranslateBench and SubsetZoomBench:
When we decode another subset, we need to reset the scanline decode
first. This bug appears to have been present since the introduction of
these tests in crrev.com/1160953002
BUG=skia:4205
BUG=skia:3418
Committed: https://skia.googlesource.com/skia/+/ab12c2715886e7f04c415028a7db49fb0b1e67f3
Patch Set 1 #
Total comments: 11
Patch Set 2 : Skip subset benches that will fail #Patch Set 3 : Add asserts #
Total comments: 2
Patch Set 4 : Rebase/remove dependent patch set #
Total comments: 1
Patch Set 5 : Initialize colorCount before reading from it. #
Total comments: 8
Messages
Total messages: 16 (5 generated)
|