summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2016-12-08 15:04:11 -0800
committerCedric Bail <cedric@osg.samsung.com>2016-12-08 15:06:25 -0800
commit7316bda15096841ef3564647b92304736d5387f3 (patch)
tree01854f8d5cb788b3bc8f16dabd1c6576d97921b2 /src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h
parent42a722be23e91301cc269f2abb10d4e407bf444a (diff)
evas: refactor swap mode info get.
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.h16
1 files changed, 4 insertions, 12 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
index 514aa80c09..9fd4b3c0e9 100644
--- a/src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h
+++ b/src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h
@@ -1,19 +1,11 @@
1#ifndef _EVAS_ENGINE_GL_DRM_H 1#ifndef _EVAS_ENGINE_GL_DRM_H
2# define _EVAS_ENGINE_GL_DRM_H 2# define _EVAS_ENGINE_GL_DRM_H
3 3
4#include "../gl_generic/Evas_Engine_GL_Shared.h"
5
4# include <Ecore_Drm2.h> 6# include <Ecore_Drm2.h>
5# include <gbm.h> 7# include <gbm.h>
6 8
7typedef enum _Evas_Engine_Info_GL_Drm_Swap_Mode
8{
9 EVAS_ENGINE_GL_DRM_SWAP_MODE_AUTO = 0,
10 EVAS_ENGINE_GL_DRM_SWAP_MODE_FULL = 1,
11 EVAS_ENGINE_GL_DRM_SWAP_MODE_COPY = 2,
12 EVAS_ENGINE_GL_DRM_SWAP_MODE_DOUBLE = 3,
13 EVAS_ENGINE_GL_DRM_SWAP_MODE_TRIPLE = 4,
14 EVAS_ENGINE_GL_DRM_SWAP_MODE_QUADRUPLE = 5
15} Evas_Engine_Info_GL_Drm_Swap_Mode;
16
17typedef struct _Evas_Engine_Info_GL_Drm Evas_Engine_Info_GL_Drm; 9typedef struct _Evas_Engine_Info_GL_Drm Evas_Engine_Info_GL_Drm;
18 10
19struct _Evas_Engine_Info_GL_Drm 11struct _Evas_Engine_Info_GL_Drm
@@ -22,7 +14,7 @@ struct _Evas_Engine_Info_GL_Drm
22 /* at you and make nasty noises */ 14 /* at you and make nasty noises */
23 Evas_Engine_Info magic; 15 Evas_Engine_Info magic;
24 16
25 struct 17 struct
26 { 18 {
27 struct gbm_device *gbm; 19 struct gbm_device *gbm;
28 20
@@ -35,7 +27,7 @@ struct _Evas_Engine_Info_GL_Drm
35 Eina_Bool destination_alpha : 1; 27 Eina_Bool destination_alpha : 1;
36 Eina_Bool vsync : 1; 28 Eina_Bool vsync : 1;
37 Eina_Bool indirect : 1; 29 Eina_Bool indirect : 1;
38 unsigned char swap_mode : 4; 30 Evas_Engine_Info_Gl_Swap_Mode swap_mode : 4;
39 } info; 31 } info;
40 32
41 struct 33 struct