Start implementing SurfaceTexture streaming into RS allocations.

Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b
This commit is contained in:
Jason Sams
2012-01-13 14:01:20 -08:00
parent 17801f1eaa
commit 615e7cee03
13 changed files with 127 additions and 4 deletions

View File

@ -269,6 +269,12 @@ public class RenderScript {
validate();
rsnAllocationSyncAll(mContext, alloc, src);
}
native int rsnAllocationGetSurfaceTextureID(int con, int alloc);
synchronized int nAllocationGetSurfaceTextureID(int alloc) {
validate();
return rsnAllocationGetSurfaceTextureID(mContext, alloc);
}
native void rsnAllocationGenerateMipmaps(int con, int alloc);
synchronized void nAllocationGenerateMipmaps(int alloc) {
validate();