cb6b8848de
Bug: skia:8579 Zero-initialize the pixel buffer that wuffs uses inside the frame rect. If the encoded image is incomplete, we will swizzle this memory into the destination, so this prevents swizzling uninitialized memory. In addition, zero-initialize the client's memory if the above buffer will not fill it, and if the frame is independent. Move decodeFrameConfig into onStartIncrementalDecode. This makes it clear that we haven't begun decoding the pixels so rowsDecoded is irrelevant. Update the documentation for onStartIncrementalDecode to make it clear that it can be called more than once (and when to do so). If a frame is incomplete and depends on prior frames, do not blend it. This will overwrite pixels from the prior frames without a way to undo. Current clients only want to show incomplete images for the first frame anyway. Add some debugging information to Codec_partialAnim test, including writing out pngs when failing the test. TBR=djsollen@google.com for documentation change in SkCodec.h Change-Id: I85c8ca4075301306f4738ddfc2f5992a5745108b Reviewed-on: https://skia-review.googlesource.com/c/174310 Commit-Queue: Leon Scroggins <scroggo@google.com> Reviewed-by: Nigel Tao <nigeltao@google.com> |
||
---|---|---|
.. | ||
SkAndroidCodec.h | ||
SkCodec.h | ||
SkCodecAnimation.h | ||
SkEncodedOrigin.h |