OSDN Git Service

Fix Bitmap parceling through ashmem.
authorJeff Brown <jeffbrown@google.com>
Fri, 5 Jun 2015 22:14:06 +0000 (15:14 -0700)
committerJeff Brown <jeffbrown@google.com>
Sat, 6 Jun 2015 04:23:45 +0000 (04:23 +0000)
commita316c5dfbc6355f536d765959cacb06bbfed76ad
treef4f41f5750e8a76b973ef33761f134453c0c5beb
parentc554b77b7392b97e0f455d8276b739e16147d6df
Fix Bitmap parceling through ashmem.

Fixes a bug where the Bitmap parceling code was unable to deal with
sending bitmaps through Parcels that disallow file descriptors.
Uses extended functionality of the Parcel blob interface to pass
buffers around more efficiently while adapting to whether FDs
are allowed.

Bug: 21428802
Change-Id: If24926f4388d29aa2aac627000436beb015edcb9
core/jni/android/graphics/Bitmap.cpp
core/jni/android/graphics/Graphics.cpp
core/jni/android/graphics/GraphicsJNI.h
core/jni/android_os_Parcel.cpp