From 8fc21fd0d5aa733eb4388c68d22c8f1748f16e33 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Thu, 5 Oct 2017 11:58:37 -0700 Subject: vo_gpu: add android opengl backend At the moment, rendering on Android requires ``--vo=opengl-cb`` and a lot of java<->c++ bridging code to receive the receive and react to the render callback in java. Performance also suffers with opengl-cb, due to the overhead of context switching in JNI. With this patch, Android can render using ``--vo=gpu --gpu-context=android`` (after setting ``--wid`` to point to an android.view.Surface on-screen). --- wscript_build.py | 1 + 1 file changed, 1 insertion(+) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index 187ecfceae..1344b39a5e 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -425,6 +425,7 @@ def build(ctx): ( "video/out/opengl/context_drm_egl.c", "egl-drm" ), ( "video/out/opengl/context_dxinterop.c","gl-dxinterop" ), ( "video/out/opengl/context_mali_fbdev.c","mali-fbdev" ), + ( "video/out/opengl/context_android.c", "android" ), ( "video/out/opengl/context_rpi.c", "rpi" ), ( "video/out/opengl/context_vdpau.c", "vdpau-gl-x11" ), ( "video/out/opengl/context_wayland.c", "gl-wayland" ), -- cgit v1.2.3