Remove outdated texture upload functions.
Change-Id: Ie3f9ba64a94425fa96b1924cb4b70dd36b71e294
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user