Lines Matching defs:GraphicBuffer
26 * Simple wrapper for the native GraphicBuffer class.
31 public class GraphicBuffer implements Parcelable {
32 // Note: keep usage flags in sync with GraphicBuffer.h and gralloc.h
65 // If set to true, this GraphicBuffer instance cannot be used anymore
69 * Creates new <code>GraphicBuffer</code> instance. This method will return null
77 * @return A <code>GraphicBuffer</code> instance or null
79 public static GraphicBuffer create(int width, int height, int format, int usage) {
82 return new GraphicBuffer(width, height, format, usage, nativeObject);
90 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) {
220 * @return True if this <code>GraphicBuffer</code> is in a destroyed state,
256 throw new IllegalStateException("This GraphicBuffer has been destroyed and cannot be "
267 public static final Parcelable.Creator<GraphicBuffer> CREATOR =
268 new Parcelable.Creator<GraphicBuffer>() {
269 public GraphicBuffer createFromParcel(Parcel in) {
276 return new GraphicBuffer(width, height, format, usage, nativeObject);
281 public GraphicBuffer[] newArray(int size) {
282 return new GraphicBuffer[size];