diff options
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
-rw-r--r-- | graphics/java/android/renderscript/RenderScript.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java index 10f4daa704a2..c3fcbb54fae0 100644 --- a/graphics/java/android/renderscript/RenderScript.java +++ b/graphics/java/android/renderscript/RenderScript.java @@ -303,15 +303,10 @@ public class RenderScript { validate(); rsnAllocationSyncAll(mContext, alloc, src); } - native int rsnAllocationGetSurfaceTextureID(int con, int alloc); - synchronized int nAllocationGetSurfaceTextureID(int alloc) { + native Surface rsnAllocationGetSurface(int con, int alloc); + synchronized Surface nAllocationGetSurface(int alloc) { validate(); - return rsnAllocationGetSurfaceTextureID(mContext, alloc); - } - native void rsnAllocationGetSurfaceTextureID2(int con, int alloc, SurfaceTexture st); - synchronized void nAllocationGetSurfaceTextureID2(int alloc, SurfaceTexture st) { - validate(); - rsnAllocationGetSurfaceTextureID2(mContext, alloc, st); + return rsnAllocationGetSurface(mContext, alloc); } native void rsnAllocationSetSurface(int con, int alloc, Surface sur); synchronized void nAllocationSetSurface(int alloc, Surface sur) { |