Implementing filling for SkBmpCodec
authormsarett <msarett@google.com>
Fri, 10 Apr 2015 21:36:48 +0000 (14:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 10 Apr 2015 21:36:49 +0000 (14:36 -0700)
commit3c309db75bb8c4c2b58724a0e2f6f3b387ca842c
treeba2f2ddf0670e3fd8edde370db6ba369ea2ec491
parent25c40d25d75c8ee5d9632608ba09eb2c5fb765d2
Implementing filling for SkBmpCodec

The bmp codec currently returns kIncompleteInput
when the stream is truncated, which we treat as a
partial success.  However, we neglect the fill the
remaining pixels in the image, leaving these
uninitialized.

This CL addresses this problem by initializing the
remaining pixels in the image to default values.

BUG=skia:3257

Review URL: https://codereview.chromium.org/1075243003
src/codec/SkCodec_libbmp.cpp
src/codec/SkCodec_libbmp.h
src/codec/SkCodec_libgif.cpp
src/codec/SkSwizzler.cpp
src/codec/SkSwizzler.h
tests/SwizzlerTest.cpp
tools/dm_flags.py