Remove outdated texture upload functions.

Change-Id: Ie3f9ba64a94425fa96b1924cb4b70dd36b71e294
This commit is contained in:
Jason Sams
2010-12-16 00:33:33 -08:00
parent 17268ccfcf
commit e5d3712d9e

View File

@@ -102,16 +102,6 @@ public class Allocation extends BaseObj {
mRS.nAllocationSyncAll(getID(), srcLocation);
}
public void uploadToTexture(int baseMipLevel) {
mRS.validate();
mRS.nAllocationUploadToTexture(getID(), false, baseMipLevel);
}
public void uploadToTexture(boolean genMips, int baseMipLevel) {
mRS.validate();
mRS.nAllocationUploadToTexture(getID(), genMips, baseMipLevel);
}
public void uploadToBufferObject() {
mRS.validate();
mRS.nAllocationUploadToBufferObject(getID());
@@ -390,6 +380,10 @@ public class Allocation extends BaseObj {
return new Allocation(id, rs, type, usage);
}
static public Allocation createTyped(RenderScript rs, Type type, int usage) {
return createTyped(rs, type, MipmapControl.MIPMAP_NONE, usage);
}
static public Allocation createTyped(RenderScript rs, Type type) {
return createTyped(rs, type, MipmapControl.MIPMAP_NONE, USAGE_SCRIPT);
}