summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index b95a5a7d9e..c86df1a271 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -891,6 +891,23 @@ ecore_drm2_device_fd_get(Ecore_Drm2_Device *device)
891 return device->fd; 891 return device->fd;
892} 892}
893 893
894EAPI Eina_Bool
895ecore_drm2_vblank_supported(Ecore_Drm2_Device *dev)
896{
897 drmVBlank tmp;
898 int ret = 0;
899
900 EINA_SAFETY_ON_NULL_RETURN_VAL(dev, EINA_FALSE);
901
902 memset(&tmp, 0, sizeof(drmVBlank));
903 tmp.request.type = DRM_VBLANK_RELATIVE;
904
905 ret = sym_drmWaitVBlank(dev->fd, &tmp);
906
907 if (ret != 0) return EINA_FALSE;
908 return EINA_TRUE;
909}
910
894/* prevent crashing with old apps compiled against these functions */ 911/* prevent crashing with old apps compiled against these functions */
895EAPI void ecore_drm2_device_keyboard_cached_context_set(){}; 912EAPI void ecore_drm2_device_keyboard_cached_context_set(){};
896EAPI void ecore_drm2_device_keyboard_cached_keymap_set(){}; 913EAPI void ecore_drm2_device_keyboard_cached_keymap_set(){};