summaryrefslogtreecommitdiffstats
path: root/video/out/gl_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_common.h')
-rw-r--r--video/out/gl_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h
index 18d1cf8879..1956b73616 100644
--- a/video/out/gl_common.h
+++ b/video/out/gl_common.h
@@ -131,6 +131,13 @@ typedef struct MPGLContext {
void (*border)(struct vo *vo);
void (*update_xinerama_info)(struct vo *vo);
+ // An optional function to register a resize callback in the backend that
+ // can be called on separate thread to handle resize events immediately
+ // (without waiting for vo_check_events, which will come later for the
+ // proper resize)
+ void (*register_resize_callback)(struct vo *vo,
+ void (*cb)(struct vo *vo, int w, int h));
+
// For free use by the backend.
void *priv;
} MPGLContext;