summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-06-03 12:56:35 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-05 10:00:44 -0400
commitee593050f1674f29a99156f135c92f43cb5897e2 (patch)
tree2b9640cee9900f7700f789887f28df679cb00f32 /src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h
parent58dbb63ba4bbc235477793b016ba31d2bf17d1fb (diff)
evas-gl-drm: Rework gl_drm engine to function again
Summary: Previous gl_drm evas engine code did not work properly (or at all really). This reworks/refactors the gl_drm engine code to work again with the changes made to ecore_drm. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h')
-rw-r--r--src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h b/src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h
new file mode 100644
index 0000000000..6cb7923d70
--- /dev/null
+++ b/src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h
@@ -0,0 +1,36 @@
1#ifndef _EVAS_ENGINE_GL_DRM_H
2# define _EVAS_ENGINE_GL_DRM_H
3
4# include <Ecore_Drm.h>
5# include <gbm.h>
6
7typedef struct _Evas_Engine_Info_GL_Drm Evas_Engine_Info_GL_Drm;
8
9struct _Evas_Engine_Info_GL_Drm
10{
11 /* PRIVATE - don't mess with this baby or evas will poke its tongue out */
12 /* at you and make nasty noises */
13 Evas_Engine_Info magic;
14
15 struct
16 {
17 struct gbm_device *gbm;
18 struct gbm_surface *surface;
19
20 unsigned int rotation, depth;
21 unsigned int crtc_id, conn_id, buffer_id;
22 unsigned int format, flags;
23
24 Ecore_Drm_Device *dev;
25
26 Eina_Bool destination_alpha : 1;
27 Eina_Bool vsync : 1;
28 Eina_Bool indirect : 1;
29 unsigned char swap_mode : 4;
30 } info;
31
32 /* non-blocking or blocking mode */
33 Evas_Engine_Render_Mode render_mode;
34};
35
36#endif