ecore-drm2: Add opaque structure to represent a hardware plane
authorChris Michael <cp.michael@samsung.com>
Fri, 24 Mar 2017 12:01:51 +0000 (08:01 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 18 Apr 2017 11:55:10 +0000 (07:55 -0400)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm2/Ecore_Drm2.h
src/lib/ecore_drm2/ecore_drm2_private.h

index 8a10104..e75a578 100644 (file)
@@ -49,6 +49,9 @@ typedef struct _Ecore_Drm2_Output Ecore_Drm2_Output;
 /* opaque structure to represent an output mode */
 typedef struct _Ecore_Drm2_Output_Mode Ecore_Drm2_Output_Mode;
 
+/* opaque structure to represent a hardware plane */
+typedef struct _Ecore_Drm2_Plane Ecore_Drm2_Plane;
+
 /* structure to represent event for output changes */
 typedef struct _Ecore_Drm2_Event_Output_Changed
 {
index a9423df..5e806f1 100644 (file)
@@ -694,6 +694,16 @@ struct _Ecore_Drm2_Fb
    void *mmap;
 };
 
+struct _Ecore_Drm2_Plane
+{
+   int type;
+   Ecore_Drm2_Fb *fb; // current fbo
+   Ecore_Drm2_Fb *qfb; // queued fbo
+# ifdef HAVE_ATOMIC_DRM
+   Ecore_Drm2_Plane_State *plane_state;
+# endif
+};
+
 struct _Ecore_Drm2_Output_Mode
 {
    uint32_t id;