aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-01-13 22:49:07 -0500
committerSimon Ser <contact@emersion.fr>2021-01-16 08:57:42 +0100
commite128e6c08dc0a735b1a8c6cc61097eaf0f61fb83 (patch)
treefaa2b6327b407f91786a823cdc83c3b1d797ed35 /include/wlr/render
parentaffc59454ec9b650cc345ab5ec0c310e8350427f (diff)
render: drop egl parameters from wlr_renderer_autocreate
Diffstat (limited to 'include/wlr/render')
-rw-r--r--include/wlr/render/egl.h1
-rw-r--r--include/wlr/render/wlr_renderer.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h
index 845cc388..82aa9505 100644
--- a/include/wlr/render/egl.h
+++ b/include/wlr/render/egl.h
@@ -41,6 +41,7 @@ struct wlr_egl {
EGLConfig config; // may be EGL_NO_CONFIG
EGLContext context;
EGLDeviceEXT device; // may be EGL_NO_DEVICE_EXT
+ struct gbm_device *gbm_device;
struct {
// Display extensions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h
index c736722a..1b2c3d6e 100644
--- a/include/wlr/render/wlr_renderer.h
+++ b/include/wlr/render/wlr_renderer.h
@@ -11,6 +11,7 @@
#include <stdint.h>
#include <wayland-server-protocol.h>
+#include <wlr/backend.h>
#include <wlr/render/egl.h>
#include <wlr/render/wlr_texture.h>
#include <wlr/types/wlr_box.h>
@@ -33,8 +34,7 @@ struct wlr_renderer {
} events;
};
-struct wlr_renderer *wlr_renderer_autocreate(EGLenum platform,
- void *remote_display);
+struct wlr_renderer *wlr_renderer_autocreate(struct wlr_backend *backend);
void wlr_renderer_begin(struct wlr_renderer *r, uint32_t width, uint32_t height);
void wlr_renderer_end(struct wlr_renderer *r);