evas-drm: Start on hardware-accel support for drm
authorChris Michael <cp.michael@samsung.com>
Wed, 12 Feb 2014 07:29:40 +0000 (07:29 +0000)
committerChris Michael <cp.michael@samsung.com>
Fri, 28 Feb 2014 13:09:37 +0000 (13:09 +0000)
@feature: Start on hardware acceleration support by adding EGL
structure to engine info

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/drm/Evas_Engine_Drm.h

index 6b1a663..99bc9b4 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _EVAS_ENGINE_DRM_H
 # define _EVAS_ENGINE_DRM_H
 
+# ifdef HAVE_DRM_HW_ACCEL
+#  include <EGL/egl.h>
+# endif
+
 typedef struct _Evas_Engine_Info_Drm Evas_Engine_Info_Drm;
 
 struct _Evas_Engine_Info_Drm
@@ -24,6 +28,17 @@ struct _Evas_Engine_Info_Drm
 
         int output;
         int plane;
+
+# ifdef HAVE_DRM_HW_ACCEL
+        struct 
+          {
+             EGLDisplay disp;
+             EGLContext ctxt;
+             EGLConfig cfg;
+          } egl;
+# endif
+
+        Eina_Bool use_hw_accel : 1;
      } info;
 
    /* non-blocking or blocking mode */