diff options
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/opengl/context.h b/video/out/opengl/context.h index df842bc8a1..a546e00be0 100644 --- a/video/out/opengl/context.h +++ b/video/out/opengl/context.h @@ -63,6 +63,11 @@ struct mpgl_driver { // This behaves exactly like vo_driver.control(). int (*control)(struct MPGLContext *ctx, int *events, int request, void *arg); + // These behave exactly like vo_driver.wakeup/wait_events. They are + // optional. + void (*wakeup)(struct MPGLContext *ctx); + void (*wait_events)(struct MPGLContext *ctx, int64_t until_time_us); + // Destroy the GL context and possibly the underlying VO backend. void (*uninit)(struct MPGLContext *ctx); }; |