First cut at RSTextureView.
Change-Id: I920950f33079b6bb7e48bb8970201ab9737bb021
diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java
index 9941827..4856ab6 100644
--- a/graphics/java/android/renderscript/RenderScript.java
+++ b/graphics/java/android/renderscript/RenderScript.java
@@ -22,6 +22,7 @@
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
+import android.graphics.SurfaceTexture;
import android.os.Process;
import android.util.Log;
import android.view.Surface;
@@ -109,6 +110,11 @@
validate();
rsnContextSetSurface(mContext, w, h, sur);
}
+ native void rsnContextSetSurfaceTexture(int con, int w, int h, SurfaceTexture sur);
+ synchronized void nContextSetSurfaceTexture(int w, int h, SurfaceTexture sur) {
+ validate();
+ rsnContextSetSurfaceTexture(mContext, w, h, sur);
+ }
native void rsnContextSetPriority(int con, int p);
synchronized void nContextSetPriority(int p) {
validate();