Clean up Allocation buffer object api.
Change-Id: Id3e2391a93a99f4c414a805ee33cfd113242a7e6
This commit is contained in:
@@ -102,12 +102,6 @@ public class Allocation extends BaseObj {
|
||||
mRS.nAllocationSyncAll(getID(), srcLocation);
|
||||
}
|
||||
|
||||
public void uploadToBufferObject() {
|
||||
mRS.validate();
|
||||
mRS.nAllocationUploadToBufferObject(getID());
|
||||
}
|
||||
|
||||
|
||||
public void copyFrom(BaseObj[] d) {
|
||||
mRS.validate();
|
||||
if (d.length != mType.getCount()) {
|
||||
@@ -516,19 +510,6 @@ public class Allocation extends BaseObj {
|
||||
USAGE_GRAPHICS_TEXTURE);
|
||||
}
|
||||
|
||||
/*
|
||||
static public Allocation createFromBitmapResource(RenderScript rs,
|
||||
Resources res,
|
||||
int id,
|
||||
Element dstFmt,
|
||||
boolean genMips) {
|
||||
MipmapControl mc = MipmapControl.MIPMAP_NONE;
|
||||
if (genMips) {
|
||||
mc = MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE;
|
||||
}
|
||||
return createFromBitmapResource(rs, res, id, mc, USAGE_GRAPHICS_TEXTURE);
|
||||
}
|
||||
*/
|
||||
static public Allocation createFromString(RenderScript rs,
|
||||
String str,
|
||||
int usage) {
|
||||
|
||||
Reference in New Issue
Block a user