Merge branch 'read-pixels-roi' into 'master'

render: Add region of interest to wlr_texture_read_pixels_options

See merge request wlroots/wlroots!4667
This commit is contained in:
Andri Yngvason 2026-01-22 08:55:04 +00:00
commit cff6e5f218
3 changed files with 19 additions and 2 deletions

View file

@ -37,6 +37,8 @@ struct wlr_texture_read_pixels_options {
uint32_t dst_x, dst_y;
/** Source box of the texture to read from. If empty, the full texture is assumed. */
const struct wlr_box src_box;
/** Region of interest within source box. If NULL, the full region is assumed to be of interest. */
struct pixman_region32 *roi;
};
bool wlr_texture_read_pixels(struct wlr_texture *texture,