mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
renderer/pixman: Nuke wlr_pixman_texture_get_image
Consumers can just get the image from the wlr_pixman_texture. Getting rid of this will make the transition to use wlr_raster easier.
This commit is contained in:
parent
bc53c79048
commit
5dd7c00a7c
2 changed files with 0 additions and 6 deletions
|
|
@ -22,6 +22,5 @@ pixman_image_t *wlr_pixman_renderer_get_current_image(
|
||||||
|
|
||||||
bool wlr_renderer_is_pixman(struct wlr_renderer *wlr_renderer);
|
bool wlr_renderer_is_pixman(struct wlr_renderer *wlr_renderer);
|
||||||
bool wlr_texture_is_pixman(struct wlr_texture *texture);
|
bool wlr_texture_is_pixman(struct wlr_texture *texture);
|
||||||
pixman_image_t *wlr_pixman_texture_get_image(struct wlr_texture *wlr_texture);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -528,11 +528,6 @@ struct wlr_renderer *wlr_pixman_renderer_create(void) {
|
||||||
return &renderer->wlr_renderer;
|
return &renderer->wlr_renderer;
|
||||||
}
|
}
|
||||||
|
|
||||||
pixman_image_t *wlr_pixman_texture_get_image(struct wlr_texture *wlr_texture) {
|
|
||||||
struct wlr_pixman_texture *texture = get_texture(wlr_texture);
|
|
||||||
return texture->image;
|
|
||||||
}
|
|
||||||
|
|
||||||
pixman_image_t *wlr_pixman_renderer_get_current_image(
|
pixman_image_t *wlr_pixman_renderer_get_current_image(
|
||||||
struct wlr_renderer *wlr_renderer) {
|
struct wlr_renderer *wlr_renderer) {
|
||||||
struct wlr_pixman_renderer *renderer = get_renderer(wlr_renderer);
|
struct wlr_pixman_renderer *renderer = get_renderer(wlr_renderer);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue