From a38baec1f89d423dea4be85a6233fed26d13732f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 1 Jul 2021 22:12:32 +0200 Subject: buffer: make enum wlr_buffer_cap public Custom backends and renderers need to implement wlr_backend_impl.get_buffer_caps and wlr_renderer_impl.get_render_buffer_caps. They can't if enum wlr_buffer_cap isn't made public. --- render/allocator.c | 1 - render/drm_dumb_allocator.c | 1 - render/gbm_allocator.c | 1 - render/gles2/renderer.c | 1 - render/shm_allocator.c | 1 - 5 files changed, 5 deletions(-) (limited to 'render') diff --git a/render/allocator.c b/render/allocator.c index aade40a9..5b7e27ff 100644 --- a/render/allocator.c +++ b/render/allocator.c @@ -8,7 +8,6 @@ #include "render/shm_allocator.h" #include "render/drm_dumb_allocator.h" #include "render/wlr_renderer.h" -#include "types/wlr_buffer.h" void wlr_allocator_init(struct wlr_allocator *alloc, const struct wlr_allocator_interface *impl, uint32_t buffer_caps) { diff --git a/render/drm_dumb_allocator.c b/render/drm_dumb_allocator.c index 9713e078..c0038dff 100644 --- a/render/drm_dumb_allocator.c +++ b/render/drm_dumb_allocator.c @@ -15,7 +15,6 @@ #include "render/drm_dumb_allocator.h" #include "render/pixel_format.h" -#include "types/wlr_buffer.h" static const struct wlr_buffer_impl buffer_impl; diff --git a/render/gbm_allocator.c b/render/gbm_allocator.c index 8dd7b49c..154e5137 100644 --- a/render/gbm_allocator.c +++ b/render/gbm_allocator.c @@ -7,7 +7,6 @@ #include #include #include "render/gbm_allocator.h" -#include "types/wlr_buffer.h" static const struct wlr_buffer_impl buffer_impl; diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 6862fe7d..2e1a1488 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -18,7 +18,6 @@ #include "render/egl.h" #include "render/gles2.h" #include "render/pixel_format.h" -#include "types/wlr_buffer.h" static const GLfloat verts[] = { 1, 0, // top right diff --git a/render/shm_allocator.c b/render/shm_allocator.c index 2066b125..1797433f 100644 --- a/render/shm_allocator.c +++ b/render/shm_allocator.c @@ -7,7 +7,6 @@ #include "render/pixel_format.h" #include "render/shm_allocator.h" #include "util/shm.h" -#include "types/wlr_buffer.h" static const struct wlr_buffer_impl buffer_impl; -- cgit v1.2.3