diff options
Diffstat (limited to 'native/include/android/native_window_jni.h')
-rw-r--r-- | native/include/android/native_window_jni.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/native/include/android/native_window_jni.h b/native/include/android/native_window_jni.h index b9e72ef..408c263 100644 --- a/native/include/android/native_window_jni.h +++ b/native/include/android/native_window_jni.h @@ -33,6 +33,14 @@ extern "C" { */ ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface); +/** + * Return the ANativeWindow associated with a Java SurfaceTexture object, + * for interacting with it through native code. This acquires a reference + * on the ANativeWindow that is returned; be sure to use ANativeWindow_release() + * when done with it so that it doesn't leak. + */ +ANativeWindow* ANativeWindow_fromSurfaceTexture(JNIEnv* env, jobject surfaceTexture); + #ifdef __cplusplus }; #endif |