mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-04 04:06:09 -05:00
scene: constify pixman_region32_t
Makes it easier to figure out which functions build regions, and which functions consume them.
This commit is contained in:
parent
8611aa8440
commit
53cdceb371
1 changed files with 4 additions and 4 deletions
|
|
@ -289,7 +289,7 @@ static void scene_node_opaque_region(struct wlr_scene_node *node, int x, int y,
|
|||
|
||||
struct scene_update_data {
|
||||
pixman_region32_t *visible;
|
||||
pixman_region32_t *update_region;
|
||||
const pixman_region32_t *update_region;
|
||||
struct wlr_box update_box;
|
||||
struct wl_list *outputs;
|
||||
bool calculate_visibility;
|
||||
|
|
@ -299,7 +299,7 @@ struct scene_update_data {
|
|||
#endif
|
||||
};
|
||||
|
||||
static uint32_t region_area(pixman_region32_t *region) {
|
||||
static uint32_t region_area(const pixman_region32_t *region) {
|
||||
uint32_t area = 0;
|
||||
|
||||
int nrects;
|
||||
|
|
@ -391,7 +391,7 @@ static void scene_output_damage_whole(struct wlr_scene_output *scene_output) {
|
|||
pixman_region32_fini(&damage);
|
||||
}
|
||||
|
||||
static void scene_damage_outputs(struct wlr_scene *scene, pixman_region32_t *damage) {
|
||||
static void scene_damage_outputs(struct wlr_scene *scene, const pixman_region32_t *damage) {
|
||||
if (pixman_region32_empty(damage)) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -654,7 +654,7 @@ static void scene_node_bounds(struct wlr_scene_node *node,
|
|||
}
|
||||
|
||||
static void scene_update_region(struct wlr_scene *scene,
|
||||
pixman_region32_t *update_region) {
|
||||
const pixman_region32_t *update_region) {
|
||||
pixman_region32_t visible;
|
||||
pixman_region32_init(&visible);
|
||||
pixman_region32_copy(&visible, update_region);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue