Make BitmapRegionDecoder succeed on invalid requests
authormsarett <msarett@google.com>
Fri, 11 Dec 2015 15:38:50 +0000 (07:38 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 11 Dec 2015 15:38:50 +0000 (07:38 -0800)
commit9a0e3467da2a61ec81f676c147c21c77de91fccf
tree34f92186cea75a2af48dc76d3cb0bdf8905d2317
parente804292e805917002cc3d7baa7f967fb20d2c7cb
Make BitmapRegionDecoder succeed on invalid requests

If the client requests a color type or alpha type that is
not supported, we should decode to the default/appropriate
color and alpha types to match existing behavior in Android.

BUG=skia:

Review URL: https://codereview.chromium.org/1513023002
include/codec/SkAndroidCodec.h
src/android/SkBitmapRegionCanvas.cpp
src/android/SkBitmapRegionCanvas.h
src/android/SkBitmapRegionCodec.cpp
src/codec/SkAndroidCodec.cpp