diff options
author | Akemi <der.richter@gmx.de> | 2018-06-04 19:13:15 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-11-13 20:43:29 +0200 |
commit | e72093581bdf07784d6889035c3751cbc7fb8ca0 (patch) | |
tree | 3d5f3b7df900c83554587b019c20325520e03fb7 /video/out/gpu | |
parent | 9e466ee6214ed302a6846dd40264cf06eb712b3a (diff) | |
download | mpv-e72093581bdf07784d6889035c3751cbc7fb8ca0.tar.bz2 mpv-e72093581bdf07784d6889035c3751cbc7fb8ca0.tar.xz |
vo_libmpv: support render performance data
Diffstat (limited to 'video/out/gpu')
-rw-r--r-- | video/out/gpu/libmpv_gpu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/video/out/gpu/libmpv_gpu.c b/video/out/gpu/libmpv_gpu.c index fce2acfa4d..f597d2bb29 100644 --- a/video/out/gpu/libmpv_gpu.c +++ b/video/out/gpu/libmpv_gpu.c @@ -207,6 +207,14 @@ static void screenshot(struct render_backend *ctx, struct vo_frame *frame, gl_video_screenshot(p->renderer, frame, args); } +static void perfdata(struct render_backend *ctx, + struct voctrl_performance_data *out) +{ + struct priv *p = ctx->priv; + + gl_video_perfdata(p->renderer, out); +} + static void destroy(struct render_backend *ctx) { struct priv *p = ctx->priv; @@ -235,5 +243,6 @@ const struct render_backend_fns render_backend_gpu = { .render = render, .get_image = get_image, .screenshot = screenshot, + .perfdata = perfdata, .destroy = destroy, }; |