ecore-drm2: Add API to check if vblank is supported
authorChristopher Michael <cp.michael@samsung.com>
Wed, 22 May 2019 11:35:45 +0000 (07:35 -0400)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 30 May 2019 08:17:52 +0000 (17:17 +0900)
commit3ab3bbab4fbd7d8140d6dcf6a18e6d39b936ad56
treef91de6bd12c4a463413ac98ef3784c1674986fd3
parent367f9e6bdf846edc33d918aad729e53b7d4a94a0
ecore-drm2: Add API to check if vblank is supported

This patch adds a small API that we can use to check if the current
video driver supports the usage of drmWaitVBlank. This check is
required for certain drivers (like vbox) which do not support
drmWaitVBlank and thus are causing our animators in ecore_evas to
freeze. We can now use this API from within Ecore_Evas to disable
vsync'd animators and fall back to timer based ones.

@feature
src/lib/ecore_drm2/Ecore_Drm2.h
src/lib/ecore_drm2/ecore_drm2_device.c