skia2/include/codec
scroggo 5842154480 SkCodec::onGetScanlineDecoder must call rewind.
This mirrors the behavior in onGetPixels, and allows the implementation
to share code for handling calls to rewindIfNeeded.

This also fixes a bug where getScanlineDecoder was calling
rewindIfNeeded and treating the result as a bool.

In SkPngCodec, factor out the code to call rewindIfNeeded, and call it
in both onGetPixels and onGetScanlineDecoder.

Update the test to include testing the scanline decoder. Rename "gen"
to "codec" now that it must be an SkCodec.

BUG=skia:3257

Depends on https://codereview.chromium.org/1048423003/ (DIFFERENT ISSUE).

Review URL: https://codereview.chromium.org/1050893002
2015-04-01 11:25:20 -07:00
..
SkCodec.h SkCodec::onGetScanlineDecoder must call rewind. 2015-04-01 11:25:20 -07:00
SkEncodedFormat.h Add SkEncodedFormat, used by SkCodec. 2015-03-20 11:55:55 -07:00
SkScanlineDecoder.h Add scanline decoding to SkCodec. 2015-03-25 11:11:52 -07:00