diff options
author | Romain Guy <romainguy@google.com> | 2017-02-09 18:38:47 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2017-02-10 11:37:54 -0800 |
commit | e8d2ebb5c29efb996179f9a4b62c78e4d3037e14 (patch) | |
tree | 55bc22afe48f7bea29354a776a823c5f9eadb9d7 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 54afd007141076273e5536c967428ca23648d3d6 (diff) |
Report bitmap config when decoding only metadata
With the introduction of support for 16 bit images, bitmaps returned
by BitmapFactory may be using the RGBA_F16 configuration. Some apps
and libraries assume the returned configuration is always ARGB_8888
and make assumptions based on that to compute cache sizes, etc.
This changes extract the output config when BitmapFactory is invoked
with the inJustDecodeBounds option. Despite its name, this option
is already used (and documented!) to decode more than bounds as it
also decodes the MIME type.
Bug: 35108998
Test: CtsGraphicsTestCases
Change-Id: If71959751458816678e42b21ab26c889aba5dea0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions