summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/Allocation.java
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-12-16 00:33:33 -0800
committerJason Sams <rjsams@android.com>2010-12-16 12:18:28 -0800
commite5d3712d9eaef7ebbf142b508bd740414d930cb0 (patch)
treee2fe8e53a1fb39d0ce15d0e36ae5906e9a9f40b4 /graphics/java/android/renderscript/Allocation.java
parent17268ccfcf11c71d3524163cd0f01f5c272cf3a7 (diff)
Remove outdated texture upload functions.
Change-Id: Ie3f9ba64a94425fa96b1924cb4b70dd36b71e294
Diffstat (limited to 'graphics/java/android/renderscript/Allocation.java')
-rw-r--r--graphics/java/android/renderscript/Allocation.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java
index 1bddbaee0f96..3ff483d19de4 100644
--- a/graphics/java/android/renderscript/Allocation.java
+++ b/graphics/java/android/renderscript/Allocation.java
@@ -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);
}