commit | 84a2afcbfbfbbc91cbaf83d55a8ebccc987e66f1 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Sun Jan 19 19:27:16 2020 -0500 |
committer | Leon Scroggins III <scroggo@google.com> | Tue Jan 21 11:51:03 2020 -0500 |
tree | 74986a0cbb40a25d8001389162dd2807a8ba3c3a | |
parent | 380f3c9ae622c7284d88afbab4732291b472f64b [diff] |
Update NDK methods for HARDWARE Bitmaps Bug: 135133301 Test: I2c1e58c41e49c72fb4bdbc64989da103885d34bf _getInfo now sets a bit in AndroidBitmapInfo.flags to indicate whether the Bitmap has Config.HARDWARE. For a HARDWARE Bitmap, its AHardwareBuffer can now be retrieved with AndroidBitmap_getHardwareBuffer. Call AHardwareBuffer_acquire on the buffer so it will not be deleted while the client is using it. Change-Id: I9240c1928c1478053ecf7c252443a33dbd6fd6db