aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-02 08:46:06 -0400
committerGitHub <noreply@github.com>2017-10-02 08:46:06 -0400
commit87a0cb7ba37eed29662ec16ce95493a0238ef660 (patch)
tree95554cb777848ce7246b651c09740d307bcdd506 /include/wlr/render.h
parentaa8a4f12b7e7ea8c3a1876f0585dd6171f8cb705 (diff)
parent9ec9edc40d4694dedfd7f00eb9106ce5ed133239 (diff)
Merge pull request #182 from ascent12/drm-multi-gpu
DRM Multi-GPU
Diffstat (limited to 'include/wlr/render.h')
-rw-r--r--include/wlr/render.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/wlr/render.h b/include/wlr/render.h
index 325f8c01..2fbfb476 100644
--- a/include/wlr/render.h
+++ b/include/wlr/render.h
@@ -2,6 +2,8 @@
#define WLR_RENDER_H
#include <stdint.h>
+#include <EGL/egl.h>
+#include <EGL/eglext.h>
#include <wayland-server-protocol.h>
#include <wlr/types/wlr_output.h>
@@ -93,8 +95,11 @@ bool wlr_texture_upload_shm(struct wlr_texture *tex, uint32_t format,
* texture. The wl_resource is not used after this call.
* Will fail (return false) if the given resource is no drm buffer.
*/
- bool wlr_texture_upload_drm(struct wlr_texture *tex,
- struct wl_resource *drm_buffer);
+bool wlr_texture_upload_drm(struct wlr_texture *tex,
+ struct wl_resource *drm_buffer);
+
+bool wlr_texture_upload_eglimage(struct wlr_texture *tex,
+ EGLImageKHR image, uint32_t width, uint32_t height);
/**
* Copies a rectangle of pixels from a wl_shm_buffer onto the texture. The