forked from enlightenment/efl
ecore-drm: Add API to setup the drm device for software rendering
Summary: This adds an API we can call from ecore_evas to setup the device for software rendering which will cause dumb buffers to be created in the Ecore_Drm_Device structure. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
2b554161fe
commit
718ce414c1
|
@ -113,6 +113,10 @@ struct _Ecore_Drm_Device
|
|||
unsigned int window;
|
||||
|
||||
Eeze_Udev_Watch *watch;
|
||||
|
||||
int current_fb;
|
||||
Ecore_Drm_Fb *current, *next;
|
||||
Ecore_Drm_Fb *dumb[2];
|
||||
};
|
||||
|
||||
struct _Ecore_Drm_Event_Activate
|
||||
|
@ -201,6 +205,20 @@ EAPI int ecore_drm_device_fd_get(Ecore_Drm_Device *dev);
|
|||
EAPI void ecore_drm_device_window_set(Ecore_Drm_Device *dev, unsigned int window);
|
||||
EAPI const char *ecore_drm_device_name_get(Ecore_Drm_Device *dev);
|
||||
|
||||
/**
|
||||
* Setup an Ecore_Drm_Device for software rendering
|
||||
*
|
||||
* This function will setup an Ecore_Drm_Device for software rendering
|
||||
* which includes creating dumb buffers to render into
|
||||
*
|
||||
* @param dev The Ecore_Drm_Device to setup for software rendering
|
||||
* @return EINA_TRUE on success, EINA_FALSE on failure
|
||||
*
|
||||
* @ingroup Ecore_Drm_Device_Group
|
||||
* @since 1.15
|
||||
*/
|
||||
EAPI Eina_Bool ecore_drm_device_software_setup(Ecore_Drm_Device *dev);
|
||||
|
||||
EAPI Eina_Bool ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name);
|
||||
EAPI Eina_Bool ecore_drm_tty_close(Ecore_Drm_Device *dev);
|
||||
EAPI Eina_Bool ecore_drm_tty_release(Ecore_Drm_Device *dev);
|
||||
|
|
Loading…
Reference in New Issue