From 451fc931b0f4924801b9a27d25a5c0339b2fcace Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 25 Dec 2017 16:04:09 +0100 Subject: vo_gpu/context: Let embedding application handle surface resizes The callbacks for this are Java-only and EGL does not reliably return the correct values. --- options/options.c | 5 +++++ options/options.h | 1 + 2 files changed, 6 insertions(+) (limited to 'options') diff --git a/options/options.c b/options/options.c index 3dafbf576b..5eb2cb525b 100644 --- a/options/options.c +++ b/options/options.c @@ -92,6 +92,7 @@ extern const struct m_sub_options d3d11_conf; extern const struct m_sub_options d3d11va_conf; extern const struct m_sub_options angle_conf; extern const struct m_sub_options cocoa_conf; +extern const struct m_sub_options android_conf; static const struct m_sub_options screenshot_conf = { .opts = image_writer_opts, @@ -668,6 +669,10 @@ const m_option_t mp_opts[] = { OPT_SUBSTRUCT("", cocoa_opts, cocoa_conf, 0), #endif +#if HAVE_ANDROID + OPT_SUBSTRUCT("", android_opts, android_conf, 0), +#endif + #if HAVE_GL_WIN32 OPT_CHOICE("opengl-dwmflush", wingl_dwm_flush, 0, ({"no", -1}, {"auto", 0}, {"windowed", 1}, {"yes", 2})), diff --git a/options/options.h b/options/options.h index c0164834d3..211284ff75 100644 --- a/options/options.h +++ b/options/options.h @@ -328,6 +328,7 @@ typedef struct MPOpts { struct d3d11_opts *d3d11_opts; struct d3d11va_opts *d3d11va_opts; struct cocoa_opts *cocoa_opts; + struct android_opts *android_opts; struct dvd_opts *dvd_opts; int cuda_device; -- cgit v1.2.3