skia2/include/codec
msarett e6dd004c1b Fill incomplete images in SkCodec parent class
Rather than implementing some sort of "fill" in every
SkCodec subclass for incomplete images, let's make the
parent class handle this situation.

This includes an API change to SkCodec.h

SkCodec::getScanlines() now returns the number of lines it
read successfully, rather than an SkCodec::Result enum.
getScanlines() most often fails on an incomplete input, in
which case it is useful to know how many lines were
successfully decoded - this provides more information than
kIncomplete vs kSuccess.  We do lose information when the
API is used improperly, as we are no longer able to return
kInvalidParameter or kScanlineNotStarted.

Known Issues:
Does not work for incomplete fFrameIsSubset gifs.
Does not work for incomplete icos.

BUG=skia:

Review URL: https://codereview.chromium.org/1332053002
2015-10-09 11:07:34 -07:00
..
SkCodec.h Fill incomplete images in SkCodec parent class 2015-10-09 11:07:34 -07:00
SkEncodedFormat.h Add SkEncodedFormat, used by SkCodec. 2015-03-20 11:55:55 -07:00
SkScaledCodec.h Fill incomplete images in SkCodec parent class 2015-10-09 11:07:34 -07:00