diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2015-03-22 02:32:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-23 21:53:32 +0100 |
commit | 3a6ade7a848f5213525430d9049e96e642638fc8 (patch) | |
tree | f0341a228f43f67883b82bf9ebbbd03fefd6388a /video/out/gl_video.h | |
parent | c10fb4ce9fcd3dbbf69741eb8499c4cfabbf5412 (diff) | |
download | mpv-3a6ade7a848f5213525430d9049e96e642638fc8.tar.bz2 mpv-3a6ade7a848f5213525430d9049e96e642638fc8.tar.xz |
vo_opengl: do not block on wayland
When not receiving frame callbacks, we should not draw anything to avoid
blocking the OpenGL renderer. We do this by extending gl context api, by
introducing new optional function 'is_active', that indicates whether
OpenGL renderers should draw or not.
This fixes issue #249.
Diffstat (limited to 'video/out/gl_video.h')
-rw-r--r-- | video/out/gl_video.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gl_video.h b/video/out/gl_video.h index 6ed39c71d3..d55486d34f 100644 --- a/video/out/gl_video.h +++ b/video/out/gl_video.h @@ -73,6 +73,7 @@ bool gl_video_check_format(struct gl_video *p, int mp_format); void gl_video_config(struct gl_video *p, struct mp_image_params *params); void gl_video_set_output_depth(struct gl_video *p, int r, int g, int b); void gl_video_set_lut3d(struct gl_video *p, struct lut3d *lut3d); +void gl_video_skip_image(struct gl_video *p, struct mp_image *mpi); void gl_video_upload_image(struct gl_video *p, struct mp_image *img); void gl_video_render_frame(struct gl_video *p, int fbo, struct frame_timing *t); void gl_video_resize(struct gl_video *p, int vp_w, int vp_h, |