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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h
index 8a133784c7..1c908cfa2b 100644
--- a/video/out/gl_common.h
+++ b/video/out/gl_common.h
@@ -118,6 +118,11 @@ typedef struct MPGLContext {
// If false, OpenGL renderers should not draw anything.
bool (*is_active)(struct MPGLContext *);
+ // Optional callback on the beginning of a frame. The frame will be finished
+ // with swapGlBuffers(). Like is_active, this returns false if use of the
+ // OpenGL context should be avoided.
+ bool (*start_frame)(struct MPGLContext *);
+
// For free use by the backend.
void *priv;
} MPGLContext;