diff options
author | Jason Sams <rjsams@android.com> | 2010-12-16 00:33:33 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-12-16 12:18:28 -0800 |
commit | e5d3712d9eaef7ebbf142b508bd740414d930cb0 (patch) | |
tree | e2fe8e53a1fb39d0ce15d0e36ae5906e9a9f40b4 /graphics/java/android/renderscript/Allocation.java | |
parent | 17268ccfcf11c71d3524163cd0f01f5c272cf3a7 (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.java | 14 |
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); } |