compositor: Change "touched" to bool
Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
118387e541
commit
060cf11f23
|
@ -2044,12 +2044,12 @@ compositor_accumulate_damage(struct weston_compositor *ec)
|
||||||
pixman_region32_fini(&clip);
|
pixman_region32_fini(&clip);
|
||||||
|
|
||||||
wl_list_for_each(ev, &ec->view_list, link)
|
wl_list_for_each(ev, &ec->view_list, link)
|
||||||
ev->surface->touched = 0;
|
ev->surface->touched = false;
|
||||||
|
|
||||||
wl_list_for_each(ev, &ec->view_list, link) {
|
wl_list_for_each(ev, &ec->view_list, link) {
|
||||||
if (ev->surface->touched)
|
if (ev->surface->touched)
|
||||||
continue;
|
continue;
|
||||||
ev->surface->touched = 1;
|
ev->surface->touched = true;
|
||||||
|
|
||||||
surface_flush_damage(ev->surface);
|
surface_flush_damage(ev->surface);
|
||||||
|
|
||||||
|
|
|
@ -968,7 +968,7 @@ struct weston_surface {
|
||||||
/* Not for long-term storage. This exists for book-keeping while
|
/* Not for long-term storage. This exists for book-keeping while
|
||||||
* iterating over surfaces and views
|
* iterating over surfaces and views
|
||||||
*/
|
*/
|
||||||
int32_t touched;
|
bool touched;
|
||||||
|
|
||||||
void *renderer_state;
|
void *renderer_state;
|
||||||
|
|
||||||
|
|
|
@ -1347,13 +1347,13 @@ rpi_renderer_repaint_output(struct weston_output *base,
|
||||||
|
|
||||||
/* Swap resources on surfaces as needed */
|
/* Swap resources on surfaces as needed */
|
||||||
wl_list_for_each_reverse(wv, &compositor->view_list, link)
|
wl_list_for_each_reverse(wv, &compositor->view_list, link)
|
||||||
wv->surface->touched = 0;
|
wv->surface->touched = false;
|
||||||
|
|
||||||
wl_list_for_each_reverse(wv, &compositor->view_list, link) {
|
wl_list_for_each_reverse(wv, &compositor->view_list, link) {
|
||||||
view = to_rpir_view(wv);
|
view = to_rpir_view(wv);
|
||||||
|
|
||||||
if (!wv->surface->touched) {
|
if (!wv->surface->touched) {
|
||||||
wv->surface->touched = 1;
|
wv->surface->touched = true;
|
||||||
|
|
||||||
if (view->surface->buffer_type == BUFFER_TYPE_EGL ||
|
if (view->surface->buffer_type == BUFFER_TYPE_EGL ||
|
||||||
view->surface->need_swap)
|
view->surface->need_swap)
|
||||||
|
|
Loading…
Reference in New Issue