Keep ashmem bitmap in MediaDescription#setIconBitmap()
When flag "media_description_ashmem_bitmap" is enabled, `MediaDescription#build()` will call `Bitmap#asShared` for the icon bitmap when flag "media_description_ashmem_bitmap" is enabled. This improves performance by using ashmem for subsequent parcelings of the bitmap. However, when `MediaDescription#build()` is called multiple times, multiple ashmem bitmaps will be created as part of multiple callings of `Bitmap#asShared()`. This change fixes this problem by keeping the ashmem bitmap directly in `setIconBitmap()`. Bug: 415375145 Flag: EXEMPT - bugfix Change-Id: I43af899d73e9d06a4a1fb440a55a6ac942b4affb
Loading
Please register or sign in to comment