Implement USAGE_IO_INPUT

Change-Id: Idbf7bb21f5ab673ad77082c5c19921d2b276c04b
This commit is contained in:
Jason Sams
2012-03-23 11:47:26 -07:00
parent 3da5525558
commit fe1d5ffd1b
15 changed files with 103 additions and 60 deletions

View File

@ -16,8 +16,8 @@
package android.renderscript;
import java.lang.reflect.Field;
import java.io.File;
import java.lang.reflect.Field;
import android.content.Context;
import android.content.pm.ApplicationInfo;
@ -294,6 +294,11 @@ public class RenderScript {
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);
}
native void rsnAllocationSetSurfaceTexture(int con, int alloc, SurfaceTexture sur);
synchronized void nAllocationSetSurfaceTexture(int alloc, SurfaceTexture sur) {
validate();