diff options
Diffstat (limited to 'graphics/java/android')
| -rw-r--r-- | graphics/java/android/renderscript/Allocation.java | 15 | ||||
| -rw-r--r-- | graphics/java/android/renderscript/RenderScript.java | 16 | ||||
| -rw-r--r-- | graphics/java/android/renderscript/Type.java | 6 |
3 files changed, 0 insertions, 37 deletions
diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java index ee5dbc1..985d700 100644 --- a/graphics/java/android/renderscript/Allocation.java +++ b/graphics/java/android/renderscript/Allocation.java @@ -162,7 +162,6 @@ public class Allocation extends BaseObj { } - public void subData2D(int xoff, int yoff, int w, int h, int[] d) { mRS.validate(); mRS.nAllocationSubData2D(mID, xoff, yoff, w, h, d, d.length * 4); @@ -183,20 +182,6 @@ public class Allocation extends BaseObj { mRS.nAllocationRead(mID, d); } - public void data(Object o) { - mRS.validate(); - mRS.nAllocationSubDataFromObject(mID, mType, 0, o); - } - - public void read(Object o) { - mRS.validate(); - mRS.nAllocationSubReadFromObject(mID, mType, 0, o); - } - - public void subData(int offset, Object o) { - mRS.validate(); - mRS.nAllocationSubDataFromObject(mID, mType, offset, o); - } public class Adapter1D extends BaseObj { Adapter1D(int id, RenderScript rs) { diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java index d51257b..62d70a7 100644 --- a/graphics/java/android/renderscript/RenderScript.java +++ b/graphics/java/android/renderscript/RenderScript.java @@ -177,14 +177,6 @@ public class RenderScript { synchronized int nTypeCreate() { return rsnTypeCreate(mContext); } - native void rsnTypeFinalDestroy(int con, Type t); - synchronized void nTypeFinalDestroy(Type t) { - rsnTypeFinalDestroy(mContext, t); - } - native void rsnTypeSetupFields(int con, Type t, int[] types, int[] bits, Field[] IDs); - synchronized void nTypeSetupFields(Type t, int[] types, int[] bits, Field[] IDs) { - rsnTypeSetupFields(mContext, t, types, bits, IDs); - } native void rsnTypeGetNativeData(int con, int id, int[] typeData); synchronized void nTypeGetNativeData(int id, int[] typeData) { rsnTypeGetNativeData(mContext, id, typeData); @@ -257,14 +249,6 @@ public class RenderScript { synchronized void nAllocationRead(int id, float[] d) { rsnAllocationRead(mContext, id, d); } - native void rsnAllocationSubDataFromObject(int con, int id, Type t, int offset, Object o); - synchronized void nAllocationSubDataFromObject(int id, Type t, int offset, Object o) { - rsnAllocationSubDataFromObject(mContext, id, t, offset, o); - } - native void rsnAllocationSubReadFromObject(int con, int id, Type t, int offset, Object o); - synchronized void nAllocationSubReadFromObject(int id, Type t, int offset, Object o) { - rsnAllocationSubReadFromObject(mContext, id, t, offset, o); - } native int rsnAllocationGetType(int con, int id); synchronized int nAllocationGetType(int id) { return rsnAllocationGetType(mContext, id); diff --git a/graphics/java/android/renderscript/Type.java b/graphics/java/android/renderscript/Type.java index 21053c9..0b3db69 100644 --- a/graphics/java/android/renderscript/Type.java +++ b/graphics/java/android/renderscript/Type.java @@ -33,7 +33,6 @@ public class Type extends BaseObj { int mElementCount; Element mElement; - private int mNativeCache; Class mJavaClass; public Element getElement() { @@ -98,14 +97,9 @@ public class Type extends BaseObj { Type(int id, RenderScript rs) { super(id, rs); - mNativeCache = 0; } protected void finalize() throws Throwable { - if(mNativeCache != 0) { - mRS.nTypeFinalDestroy(this); - mNativeCache = 0; - } super.finalize(); } |
