diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-04-07 14:06:07 -0400 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2015-04-10 11:09:50 +0200 |
commit | 718ce414c103edd5c27f096df1b66ab3a1cd8424 (patch) | |
tree | 5be974698f11fdfb24d0c55d4a7dc5493a8c0d44 /src/lib/ecore_drm/Ecore_Drm.h | |
parent | 2b554161fe8f4d048bf46e75b2f5487d1906a73f (diff) |
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>
Diffstat (limited to 'src/lib/ecore_drm/Ecore_Drm.h')
-rw-r--r-- | src/lib/ecore_drm/Ecore_Drm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h index ff3dbfb276..6b47e9eebe 100644 --- a/src/lib/ecore_drm/Ecore_Drm.h +++ b/src/lib/ecore_drm/Ecore_Drm.h | |||
@@ -113,6 +113,10 @@ struct _Ecore_Drm_Device | |||
113 | unsigned int window; | 113 | unsigned int window; |
114 | 114 | ||
115 | Eeze_Udev_Watch *watch; | 115 | Eeze_Udev_Watch *watch; |
116 | |||
117 | int current_fb; | ||
118 | Ecore_Drm_Fb *current, *next; | ||
119 | Ecore_Drm_Fb *dumb[2]; | ||
116 | }; | 120 | }; |
117 | 121 | ||
118 | struct _Ecore_Drm_Event_Activate | 122 | struct _Ecore_Drm_Event_Activate |
@@ -201,6 +205,20 @@ EAPI int ecore_drm_device_fd_get(Ecore_Drm_Device *dev); | |||
201 | EAPI void ecore_drm_device_window_set(Ecore_Drm_Device *dev, unsigned int window); | 205 | EAPI void ecore_drm_device_window_set(Ecore_Drm_Device *dev, unsigned int window); |
202 | EAPI const char *ecore_drm_device_name_get(Ecore_Drm_Device *dev); | 206 | EAPI const char *ecore_drm_device_name_get(Ecore_Drm_Device *dev); |
203 | 207 | ||
208 | /** | ||
209 | * Setup an Ecore_Drm_Device for software rendering | ||
210 | * | ||
211 | * This function will setup an Ecore_Drm_Device for software rendering | ||
212 | * which includes creating dumb buffers to render into | ||
213 | * | ||
214 | * @param dev The Ecore_Drm_Device to setup for software rendering | ||
215 | * @return EINA_TRUE on success, EINA_FALSE on failure | ||
216 | * | ||
217 | * @ingroup Ecore_Drm_Device_Group | ||
218 | * @since 1.15 | ||
219 | */ | ||
220 | EAPI Eina_Bool ecore_drm_device_software_setup(Ecore_Drm_Device *dev); | ||
221 | |||
204 | EAPI Eina_Bool ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name); | 222 | EAPI Eina_Bool ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name); |
205 | EAPI Eina_Bool ecore_drm_tty_close(Ecore_Drm_Device *dev); | 223 | EAPI Eina_Bool ecore_drm_tty_close(Ecore_Drm_Device *dev); |
206 | EAPI Eina_Bool ecore_drm_tty_release(Ecore_Drm_Device *dev); | 224 | EAPI Eina_Bool ecore_drm_tty_release(Ecore_Drm_Device *dev); |