Merge "Remove Bitmap#createGraphicBufferHandle"
This commit is contained in:
committed by
Android (Google) Code Review
commit
cfffe4e69f
@@ -2220,20 +2220,6 @@ public final class Bitmap implements Parcelable {
|
||||
nativePrepareToDraw(mNativePtr);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link GraphicBuffer} which is internally used by hardware bitmap
|
||||
*
|
||||
* Note: the GraphicBuffer does *not* have an associated {@link ColorSpace}.
|
||||
* To render this object the same as its rendered with this Bitmap, you
|
||||
* should also call {@link getColorSpace}.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public GraphicBuffer createGraphicBufferHandle() {
|
||||
return GraphicBuffer.createFromHardwareBuffer(getHardwareBuffer());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link HardwareBuffer} which is internally used by hardware bitmap
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user