mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
210c71b856
This makes no sense by itself, but we want to create the EGLImage at DmabufTexture construction so that we can actually reject dmabufs that we can't create EGLImages for. This will make it possible to bail when the stride limitation for AMD GPUs hits.
19 lines
935 B
C
19 lines
935 B
C
#pragma once
|
|
|
|
#if defined(HAVE_DMABUF) && defined (HAVE_EGL)
|
|
|
|
#include "gdkdmabufprivate.h"
|
|
#include "gdkdmabufdownloaderprivate.h"
|
|
|
|
#include <epoxy/egl.h>
|
|
|
|
GdkDmabufDownloader * gdk_dmabuf_get_egl_downloader (GdkDisplay *display,
|
|
GdkDmabufFormatsBuilder *builder);
|
|
EGLImage gdk_dmabuf_egl_create_image (GdkDisplay *display,
|
|
int width,
|
|
int height,
|
|
const GdkDmabuf *dmabuf,
|
|
int target);
|
|
|
|
#endif /* HAVE_DMABUF && HAVE_EGL */
|