render: drop wlr_renderer_impl.texture_from_pixels

This commit is contained in:
Simon Ser 2021-06-29 20:39:19 +02:00 committed by Simon Zeni
parent 29c8df7e0a
commit 18adb43a44
6 changed files with 2 additions and 44 deletions

View file

@ -592,7 +592,6 @@ static const struct wlr_renderer_impl renderer_impl = {
.get_render_formats = gles2_get_render_formats,
.preferred_read_format = gles2_preferred_read_format,
.read_pixels = gles2_read_pixels,
.texture_from_pixels = gles2_texture_from_pixels,
.texture_from_wl_drm = gles2_texture_from_wl_drm,
.texture_from_dmabuf = gles2_texture_from_dmabuf,
.init_wl_display = gles2_init_wl_display,

View file

@ -179,7 +179,8 @@ static struct wlr_gles2_texture *gles2_texture_create(
return texture;
}
struct wlr_texture *gles2_texture_from_pixels(struct wlr_renderer *wlr_renderer,
static struct wlr_texture *gles2_texture_from_pixels(
struct wlr_renderer *wlr_renderer,
uint32_t drm_format, uint32_t stride, uint32_t width,
uint32_t height, const void *data) {
struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer);