From 1648ff8a0f18e1c1a5e979084148cc7ecf195984 Mon Sep 17 00:00:00 2001 From: rr- Date: Mon, 3 Oct 2016 23:56:35 +0200 Subject: vo_drm: refactor getting display fps Reduces code duplication between OpenGL backend and DRM VO. (The control() for OpenGL backend isn't sufficiently similar to the VO's control() to consider merging it as a whole - I extracted only the FPS code.) --- video/out/drm_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/drm_common.h') diff --git a/video/out/drm_common.h b/video/out/drm_common.h index 933203496c..53ec9e35df 100644 --- a/video/out/drm_common.h +++ b/video/out/drm_common.h @@ -49,5 +49,6 @@ void vt_switcher_release(struct vt_switcher *s, void (*handler)(void*), void *us struct kms *kms_create(struct mp_log *log); bool kms_setup(struct kms *kms, const char *device_path, int conn_id, int mode_id); void kms_destroy(struct kms *kms); +double kms_get_display_fps(const struct kms *kms); #endif -- cgit v1.2.3