screenshooter: get previous_damage from data argument instead of weston_output

Instead of getting previous_damage from the weston_output struct, get it from
the frame_signal data argument. This will make possible to remove
previous_damage from weston_output after we decide what to do with
output->previous_damage usage in DRM backend.

Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
dev
Leandro Ribeiro 5 years ago
parent adaf8c7410
commit e28e831211
  1. 3
      libweston/screenshooter.c

@ -287,8 +287,7 @@ weston_recorder_frame_notify(struct wl_listener *listener, void *data)
pixman_region32_init(&damage); pixman_region32_init(&damage);
pixman_region32_init(&transformed_damage); pixman_region32_init(&transformed_damage);
pixman_region32_intersect(&damage, &output->region, pixman_region32_intersect(&damage, &output->region, data);
&output->previous_damage);
pixman_region32_translate(&damage, -output->x, -output->y); pixman_region32_translate(&damage, -output->x, -output->y);
weston_transformed_region(output->width, output->height, weston_transformed_region(output->width, output->height,
output->transform, output->current_scale, output->transform, output->current_scale,

Loading…
Cancel
Save