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
Showing
- core/jni/android/graphics/Bitmap.cpp 5 additions, 1 deletioncore/jni/android/graphics/Bitmap.cpp
- core/jni/android/graphics/GraphicsJNI.h 2 additions, 1 deletioncore/jni/android/graphics/GraphicsJNI.h
- core/jni/android/graphics/apex/android_bitmap.cpp 24 additions, 6 deletionscore/jni/android/graphics/apex/android_bitmap.cpp
- core/jni/android/graphics/apex/include/android/graphics/bitmap.h 15 additions, 0 deletions...i/android/graphics/apex/include/android/graphics/bitmap.h
- native/graphics/jni/bitmap.cpp 15 additions, 0 deletionsnative/graphics/jni/bitmap.cpp
- native/graphics/jni/libjnigraphics.map.txt 1 addition, 0 deletionsnative/graphics/jni/libjnigraphics.map.txt
Loading
Please register or sign in to comment