summaryrefslogtreecommitdiffstats
path: root/opengl/java/com/google
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2011-06-15 15:18:31 -0700
committerRomain Guy <romainguy@android.com>2011-06-15 16:14:26 -0700
commite5e0c50f7dfaccc220725c5595080e921ffda1e4 (patch)
treead37fc360554e81d9dddc6eb47c52e664f7ed25a /opengl/java/com/google
parentf71e5469441286c6f466043e64a7f6492557cbd9 (diff)
downloadframeworks_base-e5e0c50f7dfaccc220725c5595080e921ffda1e4.zip
frameworks_base-e5e0c50f7dfaccc220725c5595080e921ffda1e4.tar.gz
frameworks_base-e5e0c50f7dfaccc220725c5595080e921ffda1e4.tar.bz2
Properly refcount SurfaceTexture in the JNI layer.
Change-Id: I4b4c8020c13b8d6ce0d302fe42410033bf5785a6
Diffstat (limited to 'opengl/java/com/google')
-rw-r--r--opengl/java/com/google/android/gles_jni/EGLImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/java/com/google/android/gles_jni/EGLImpl.java b/opengl/java/com/google/android/gles_jni/EGLImpl.java
index f162d40..51d6ca8 100644
--- a/opengl/java/com/google/android/gles_jni/EGLImpl.java
+++ b/opengl/java/com/google/android/gles_jni/EGLImpl.java
@@ -85,7 +85,7 @@ public class EGLImpl implements EGL10 {
eglSurfaceId = _eglCreateWindowSurface(display, config, sur, attrib_list);
} else if (native_window instanceof SurfaceTexture) {
eglSurfaceId = _eglCreateWindowSurfaceTexture(display, config,
- ((SurfaceTexture) native_window).mSurfaceTexture, attrib_list);
+ (SurfaceTexture) native_window, attrib_list);
} else {
throw new java.lang.UnsupportedOperationException(
"eglCreateWindowSurface() can only be called with an instance of " +
@@ -143,7 +143,7 @@ public class EGLImpl implements EGL10 {
private native int _eglCreatePbufferSurface(EGLDisplay display, EGLConfig config, int[] attrib_list);
private native void _eglCreatePixmapSurface(EGLSurface sur, EGLDisplay display, EGLConfig config, Object native_pixmap, int[] attrib_list);
private native int _eglCreateWindowSurface(EGLDisplay display, EGLConfig config, Object native_window, int[] attrib_list);
- private native int _eglCreateWindowSurfaceTexture(EGLDisplay display, EGLConfig config, int native_window, int[] attrib_list);
+ private native int _eglCreateWindowSurfaceTexture(EGLDisplay display, EGLConfig config, Object native_window, int[] attrib_list);
private native int _eglGetDisplay(Object native_display);
private native int _eglGetCurrentContext();
private native int _eglGetCurrentDisplay();