Convert from SurfaceTexture to Surface

Change-Id: I2ad4307294d4144999ca0c12ac19849b188243fb
This commit is contained in:
Jason Sams
2012-03-28 15:30:07 -07:00
parent 972ed5809c
commit fb9aa9f3ef
3 changed files with 34 additions and 13 deletions

View File

@ -299,10 +299,10 @@ public class RenderScript {
validate();
rsnAllocationGetSurfaceTextureID2(mContext, alloc, st);
}
native void rsnAllocationSetSurfaceTexture(int con, int alloc, SurfaceTexture sur);
synchronized void nAllocationSetSurfaceTexture(int alloc, SurfaceTexture sur) {
native void rsnAllocationSetSurface(int con, int alloc, Surface sur);
synchronized void nAllocationSetSurface(int alloc, Surface sur) {
validate();
rsnAllocationSetSurfaceTexture(mContext, alloc, sur);
rsnAllocationSetSurface(mContext, alloc, sur);
}
native void rsnAllocationIoSend(int con, int alloc);
synchronized void nAllocationIoSend(int alloc) {