DescriptionFocus SkScaledCodec on BitmapRegionDecoder
The primary goal of SkScaledCodec is to replace the current
implementation of BitmapRegionDecoder, which depends on modified
versions of libjpeg and libpng, with an implementation that uses
standard versions of the libaries. Since BitmapRegionDecoder only
supports PNG, WEBP and JPEG, limit SkScaledCodec to those classes.
We will focus on those three until we complete this primary goal.
Then we can continue to make SkScaledCodec work for other formats.
Fix some bugs in SkScaledCodec::NewFromStream:
- Handle a NULL input stream properly
- Ensure that the input stream is deleted as expected on bad data
Add tests for these error cases.
BUG=skia:4428
Committed: https://skia.googlesource.com/skia/+/2c3b218f74aa0ccd544a73feb506a0be56d90abe
Patch Set 1 #Patch Set 2 : Detach returned codec #
Total comments: 2
Patch Set 3 : Rebase #Patch Set 4 : Disable SkScaledCodec non BRD types in CodexTest #Messages
Total messages: 14 (6 generated)
|