mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
wlr_texture: Drop wlr_texure_from_buffer
Compositors should be using wlr_raster for texture management.
This commit is contained in:
parent
33ae408579
commit
1e2af8665b
10 changed files with 88 additions and 143 deletions
|
|
@ -32,14 +32,6 @@ void wlr_texture_destroy(struct wlr_texture *texture) {
|
|||
}
|
||||
}
|
||||
|
||||
struct wlr_texture *wlr_texture_from_buffer(struct wlr_renderer *renderer,
|
||||
struct wlr_buffer *buffer) {
|
||||
if (!renderer->impl->texture_from_buffer) {
|
||||
return NULL;
|
||||
}
|
||||
return renderer->impl->texture_from_buffer(renderer, buffer);
|
||||
}
|
||||
|
||||
bool wlr_texture_update_from_buffer(struct wlr_texture *texture,
|
||||
struct wlr_buffer *buffer, pixman_region32_t *damage) {
|
||||
if (!texture->impl->update_from_buffer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue