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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h
index 3c8d1aaa98..64490b7098 100644
--- a/video/out/gl_common.h
+++ b/video/out/gl_common.h
@@ -202,6 +202,8 @@ struct gl_hwdec_driver {
// Undo map_image(). The user of map_image() calls this when the textures
// are not needed anymore.
void (*unmap_image)(struct gl_hwdec *hw);
+ // Return a mp_image downloaded from the GPU (optional)
+ struct mp_image *(*download_image)(struct gl_hwdec *hw);
void (*destroy)(struct gl_hwdec *hw);
};