wlr_texture: Update wlr_texture_update_from_buffer to use wlr_raster

In the future, these implementations can use compatible texture sources
to do fast blit instead.
This commit is contained in:
Alexander Orzechowski 2022-06-20 12:34:10 -04:00
parent 1e2af8665b
commit beaede2df0
5 changed files with 23 additions and 23 deletions

View file

@ -55,8 +55,8 @@ void wlr_renderer_init(struct wlr_renderer *renderer,
const struct wlr_renderer_impl *impl);
struct wlr_texture_impl {
bool (*update_from_buffer)(struct wlr_texture *texture,
struct wlr_buffer *buffer, pixman_region32_t *damage);
bool (*update_from_raster)(struct wlr_texture *texture,
struct wlr_raster *raster, pixman_region32_t *damage);
void (*destroy)(struct wlr_texture *texture);
};