[vlc-commits] android: utils: remove AWindow SurfaceTexture functions

Alexandre Janniaux git at videolan.org
Wed Jul 8 17:52:57 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed Jun 24 15:14:37 2020 +0200| [4c0f4a52f1252b34e6366ed74506a445e79dec00] | committer: Alexandre Janniaux

android: utils: remove AWindow SurfaceTexture functions

They are not used anymore since we create the SurfaceTexture ourselves.

Signed-off-by: Alexandre Janniaux <ajanni at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c0f4a52f1252b34e6366ed74506a445e79dec00
---

 modules/video_output/android/utils.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/modules/video_output/android/utils.c b/modules/video_output/android/utils.c
index 0ce143d998..1180d5e21f 100644
--- a/modules/video_output/android/utils.c
+++ b/modules/video_output/android/utils.c
@@ -126,10 +126,6 @@ static struct
         jmethodID registerNative;
         jmethodID unregisterNative;
         jmethodID setVideoLayout;
-        jmethodID attachToGLContext;
-        jmethodID detachFromGLContext;
-        jmethodID waitAndUpdateTexImage;
-        jmethodID getSurface;
     } AWindow;
     struct {
           jclass clazz;
@@ -706,16 +702,6 @@ InitJNIFields(JNIEnv *env, vlc_object_t *p_obj, jobject *jobj)
     GET_METHOD(AWindow, setVideoLayout,
                "setVideoLayout", "(IIIIII)V", true);
 
-    GET_METHOD(AWindow, attachToGLContext,
-               "SurfaceTexture_attachToGLContext", "(I)Z", true);
-    GET_METHOD(AWindow, detachFromGLContext,
-               "SurfaceTexture_detachFromGLContext", "()V", true);
-    GET_METHOD(AWindow, waitAndUpdateTexImage,
-               "SurfaceTexture_waitAndUpdateTexImage", "([F)Z",
-               true);
-    GET_METHOD(AWindow, getSurface,
-               "SurfaceTexture_getSurface", "()Landroid/view/Surface;", true);
-
     if ((*env)->RegisterNatives(env, jfields.AWindow.clazz, jni_callbacks, 2) < 0)
     {
         msg_Err(p_obj, "RegisterNatives failed");



More information about the vlc-commits mailing list