wayland-drm: Drop the non-premul formats, use format codes from drm_fourcc.h
[mesa.git] / src / gallium / state_trackers / egl / common / native_buffer.h
index b8a66d17e1203d094cb2d025acc0245c4f987719..eb161b11a3d0087acea54ae8b3170ebfbe0def38 100644 (file)
 #include "pipe/p_state.h"
 
 struct native_display;
+struct ANativeWindowBuffer;
 
 enum native_buffer_type {
    NATIVE_BUFFER_DRM,
+   NATIVE_BUFFER_ANDROID,
 
    NUM_NATIVE_BUFFERS
 };
@@ -50,6 +52,8 @@ struct native_buffer {
          unsigned handle; /**< the handle of the GEM object */
          unsigned stride;
       } drm;
+
+      struct ANativeWindowBuffer *android; /**< opaque native buffer */
    } u;
 };