Loading include/android/native_window_jni.h +11 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,17 @@ ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface); ANativeWindow* ANativeWindow_fromSurfaceTexture(JNIEnv* env, jobject surfaceTexture); #endif #if __ANDROID_API__ >= 26 /** * Return a Java Surface object derived from the ANativeWindow, for interacting * with it through Java code. The returned Java object acquires a reference on * the ANativeWindow; maintains it through general Java object's life cycle; * and will automatically release the reference when the Java object gets garbage * collected. */ jobject ANativeWindow_toSurface(JNIEnv* env, ANativeWindow* window); #endif #ifdef __cplusplus }; #endif Loading Loading
include/android/native_window_jni.h +11 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,17 @@ ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface); ANativeWindow* ANativeWindow_fromSurfaceTexture(JNIEnv* env, jobject surfaceTexture); #endif #if __ANDROID_API__ >= 26 /** * Return a Java Surface object derived from the ANativeWindow, for interacting * with it through Java code. The returned Java object acquires a reference on * the ANativeWindow; maintains it through general Java object's life cycle; * and will automatically release the reference when the Java object gets garbage * collected. */ jobject ANativeWindow_toSurface(JNIEnv* env, ANativeWindow* window); #endif #ifdef __cplusplus }; #endif Loading