mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-07 04:06:14 -05:00
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:
commit
cff6e5f218
3 changed files with 19 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue