Skip to content
Commit 66c6d789 authored by Derek Sollenberger's avatar Derek Sollenberger Committed by Leon Scroggins III
Browse files

Use ImageDecoder for BitmapDrawable

If required due to density mismatches the ImageDecoder will not
upscale the image at decode time, but instead will decode at the
bitmaps default size and upscale at draw time.  This can be a
significant memory savings for low-dpi assets being used on a high-dpi
device.

However, if the provided asset has a higher dpi level than the bitmaps
default density then we will match BitmapFactories behavior and downscale
the bitmap to match the default density.

Bug: 63909536
Test: CtsGraphicsTestCases
Change-Id: I189306b7a3b706bed32bb267970ade27a57c0e7f
parent 671cce26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment