DescriptionAdd scanline decoding to SkCodec.
Add an interface for decoding scanlines, and implement that interface
in the PNG decoder.
Use a separate method to determine whether an image that used a type
with alpha was actually opaque.
SkScanlineDecoder.h:
New interface for decoding scanlines.
SkCodec.h:
Add getScanlineDecoder.
Add a virtual function (with non-virtual caller) for determining
whether the image truly had alpha. The client can call this to
determine if the image was actually opaque if it reported having alpha.
Remove code to sneakily change the passed in alpha type.
SkCodec_libpng.*:
Split up code onGetPixels into helper functions that can be shared with
the scanline decoder.
Implement scanline decoding.
Implement onReallyHasAlpha.
SkSwizzler.*:
Add a new SrcConfig as a default, which is invalid.
Add a function for setting fDstRow directly.
Assert fDstRow is not NULL.
BUG=skia:3257
Committed: https://skia.googlesource.com/skia/+/05245900bf6d49068b1668da1b38890a41e09bc5
Patch Set 1 #Patch Set 2 : Small fixes. #Patch Set 3 : Cleanups #
Total comments: 4
Patch Set 4 : Rebase #Patch Set 5 : Call IsOpaque #Patch Set 6 : Actually draw the bitmap after decoding it in DM. #Patch Set 7 : getOriginalInfo -> getInfo. #Patch Set 8 : SkCodec owns the SkScanlineDecoder. #Patch Set 9 : Only support the N line scanline getter. #Patch Set 10 : Remove subset scanline decoding. #Patch Set 11 : Small cleanups. #
Total comments: 2
Patch Set 12 : Clarify getScanlineDecoder comment. #Patch Set 13 : Remove the need to call finish. #Patch Set 14 : Add an explanation for why we don't return kSuccess. #Patch Set 15 : Add FIXMEs for reallyHasAlpha. #Patch Set 16 : Remove testing only changes. #
Total comments: 6
Patch Set 17 : Respond to Derek's comments on patch set 16 #Patch Set 18 : Rebase #Patch Set 19 : Finish rebase #Patch Set 20 : Prevent clobber error. #
Total comments: 1
Patch Set 21 : Try number two... #Patch Set 22 : Build with no-clobbered #
Messages
Total messages: 27 (9 generated)
|