aboutsummaryrefslogtreecommitdiff
path: root/render/wlr_texture.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-02-02 23:38:42 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-07-05 11:13:41 -0400
commite5b5592a95e3f12afc90cc9fcf5adc3664bf79a3 (patch)
tree63de24befd7b020d618c4bb317fc2b309ea85855 /render/wlr_texture.c
parent4e07d4cbf9c104625d419b9123dca0ef402472e7 (diff)
render: remove wl_drm support from wlr_renderer
Everything needs to go through the unified wlr_buffer interface now. If necessary, there are two ways support for EGL_WL_bind_wayland_display could be restored by compositors: - Either by using GBM to convert back EGL Wayland buffers to DMA-BUFs, then wrap the DMA-BUF into a wlr_buffer. - Or by wrapping the EGL Wayland buffer into a special wlr_buffer that doesn't implement any wlr_buffer_impl hook, and special-case that buffer type in the renderer.
Diffstat (limited to 'render/wlr_texture.c')
-rw-r--r--render/wlr_texture.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/render/wlr_texture.c b/render/wlr_texture.c
index a54d6af1..9e825449 100644
--- a/render/wlr_texture.c
+++ b/render/wlr_texture.c
@@ -45,14 +45,6 @@ struct wlr_texture *wlr_texture_from_pixels(struct wlr_renderer *renderer,
return texture;
}
-struct wlr_texture *wlr_texture_from_wl_drm(struct wlr_renderer *renderer,
- struct wl_resource *data) {
- if (!renderer->impl->texture_from_wl_drm) {
- return NULL;
- }
- return renderer->impl->texture_from_wl_drm(renderer, data);
-}
-
struct wlr_texture *wlr_texture_from_dmabuf(struct wlr_renderer *renderer,
struct wlr_dmabuf_attributes *attribs) {
struct wlr_dmabuf_buffer *buffer = dmabuf_buffer_create(attribs);