From 8809979ce35f74f4b48e4c76ae4ea0f79c83f3fd Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 12 Jun 2015 11:44:29 -0400 Subject: [PATCH] evas-gl-drm: Add swap_mode enum Summary: This adds an enum we can use for setting/determining the swap_mode to use for the gl_drm engine Signed-off-by: Chris Michael --- src/modules/evas/engines/gl_drm/Evas_Engine_GL_Drm.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 17fe8cb..71ab60c 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 @@ -4,6 +4,16 @@ # include # include +typedef enum _Evas_Engine_Info_GL_Drm_Swap_Mode +{ + EVAS_ENGINE_GL_DRM_SWAP_MODE_AUTO = 0, + EVAS_ENGINE_GL_DRM_SWAP_MODE_FULL = 1, + EVAS_ENGINE_GL_DRM_SWAP_MODE_COPY = 2, + EVAS_ENGINE_GL_DRM_SWAP_MODE_DOUBLE = 3, + EVAS_ENGINE_GL_DRM_SWAP_MODE_TRIPLE = 4, + EVAS_ENGINE_GL_DRM_SWAP_MODE_QUADRUPLE = 5 +} Evas_Engine_Info_GL_Drm_Swap_Mode; + typedef struct _Evas_Engine_Info_GL_Drm Evas_Engine_Info_GL_Drm; struct _Evas_Engine_Info_GL_Drm @@ -15,7 +25,6 @@ struct _Evas_Engine_Info_GL_Drm struct { struct gbm_device *gbm; - struct gbm_surface *surface; unsigned int rotation, depth; unsigned int crtc_id, conn_id, buffer_id; -- 2.7.4