aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/egl.h
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2019-04-08 10:58:18 +0200
committerGitHub <noreply@github.com>2019-04-08 10:58:18 +0200
commit9faea17c738d9bfcdd241de7bae0bbe7590c77bf (patch)
tree3af5beee400f81ae4d8ced171719558b7730d1cd /include/wlr/render/egl.h
parent43bd1d807af533fa369ed3d5431ca2f4e776e9bf (diff)
parente42178d03fd34f9f5fba10feabfc4b35a71edd31 (diff)
Merge pull request #1642 from emersion/format-set
Introduce wlr_format_set
Diffstat (limited to 'include/wlr/render/egl.h')
-rw-r--r--include/wlr/render/egl.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h
index 269af7e2..fb473ba8 100644
--- a/include/wlr/render/egl.h
+++ b/include/wlr/render/egl.h
@@ -21,6 +21,7 @@
#include <stdbool.h>
#include <wayland-server.h>
#include <wlr/render/dmabuf.h>
+#include <wlr/render/drm_format_set.h>
struct wlr_egl {
EGLenum platform;
@@ -42,6 +43,8 @@ struct wlr_egl {
} exts;
struct wl_display *wl_display;
+
+ struct wlr_drm_format_set dmabuf_formats;
};
// TODO: Allocate and return a wlr_egl
@@ -88,13 +91,7 @@ EGLImageKHR wlr_egl_create_image_from_dmabuf(struct wlr_egl *egl,
/**
* Get the available dmabuf formats
*/
-int wlr_egl_get_dmabuf_formats(struct wlr_egl *egl, int **formats);
-
-/**
- * Get the available dmabuf modifiers for a given format
- */
-int wlr_egl_get_dmabuf_modifiers(struct wlr_egl *egl, int format,
- uint64_t **modifiers);
+const struct wlr_drm_format_set *wlr_egl_get_dmabuf_formats(struct wlr_egl *egl);
bool wlr_egl_export_image_to_dmabuf(struct wlr_egl *egl, EGLImageKHR image,
int32_t width, int32_t height, uint32_t flags,