diff options
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/render/egl.h | 1 | ||||
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 4 |
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); |