diff options
author | wm4 <wm4@nowhere> | 2015-05-01 18:44:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-01 18:44:45 +0200 |
commit | 0a7abbda6b555fb7746f737b52d0f00fb3e614db (patch) | |
tree | f97223c385573718609738b5b8ffda09a7ecfa86 /video/out/gl_common.h | |
parent | e23e4c7c603fc1cd911621d0f833031be4a6f7c7 (diff) | |
download | mpv-0a7abbda6b555fb7746f737b52d0f00fb3e614db.tar.bz2 mpv-0a7abbda6b555fb7746f737b52d0f00fb3e614db.tar.xz |
vo_opengl: refactor wayland frame skipping
Currently, the wayland backend needs extra work to avoid drawing more
often than the wayland frame callback allows. (This is not ideal, but
will be fixed at a later time.)
Unify this with the start_frame callback added for cocoa. Some details
change for the better. For example, if a frame is dropped, and a redraw
is done afterwards, the actually correct frame is redrawn, instead
whatever was in the textures from before the dropped frame.
Diffstat (limited to 'video/out/gl_common.h')
-rw-r--r-- | video/out/gl_common.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h index 1c908cfa2b..feeb3e59f4 100644 --- a/video/out/gl_common.h +++ b/video/out/gl_common.h @@ -114,13 +114,9 @@ typedef struct MPGLContext { void (*register_resize_callback)(struct vo *vo, void (*cb)(struct vo *vo, int w, int h)); - // Optional activity state of context. - // 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. + // with swapGlBuffers(). This returns false if use of the OpenGL context + // should be avoided. bool (*start_frame)(struct MPGLContext *); // For free use by the backend. |