diff options
author | Romain Guy <romainguy@android.com> | 2011-06-15 15:18:31 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2011-06-15 16:14:26 -0700 |
commit | e5e0c50f7dfaccc220725c5595080e921ffda1e4 (patch) | |
tree | ad37fc360554e81d9dddc6eb47c52e664f7ed25a /opengl/java/com/google/android/gles_jni/EGLImpl.java | |
parent | f71e5469441286c6f466043e64a7f6492557cbd9 (diff) | |
download | frameworks_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/android/gles_jni/EGLImpl.java')
-rw-r--r-- | opengl/java/com/google/android/gles_jni/EGLImpl.java | 4 |
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(); |