summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-11-18 16:32:26 -0600
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2015-11-20 15:27:55 +0200
commit060cf11f235c481ed65fe3cf085c23af11e54f6f (patch)
treee729f1c69431235c6bec7022cd8a7097c55757b9
parent118387e54155f581be72ca816d5c4b9c33835842 (diff)
downloadweston-060cf11f235c481ed65fe3cf085c23af11e54f6f.tar.gz
compositor: Change "touched" to bool
Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r--src/compositor.c4
-rw-r--r--src/compositor.h2
-rw-r--r--src/rpi-renderer.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/compositor.c b/src/compositor.c
index f8437e81..67be07d4 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -2044,12 +2044,12 @@ compositor_accumulate_damage(struct weston_compositor *ec)
pixman_region32_fini(&clip);
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) {
if (ev->surface->touched)
continue;
- ev->surface->touched = 1;
+ ev->surface->touched = true;
surface_flush_damage(ev->surface);
diff --git a/src/compositor.h b/src/compositor.h
index 203c2fd2..a07b51a2 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -968,7 +968,7 @@ struct weston_surface {
/* Not for long-term storage. This exists for book-keeping while
* iterating over surfaces and views
*/
- int32_t touched;
+ bool touched;
void *renderer_state;
diff --git a/src/rpi-renderer.c b/src/rpi-renderer.c
index 76e1ddf7..33eb67cc 100644
--- a/src/rpi-renderer.c
+++ b/src/rpi-renderer.c
@@ -1347,13 +1347,13 @@ rpi_renderer_repaint_output(struct weston_output *base,
/* Swap resources on surfaces as needed */
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) {
view = to_rpir_view(wv);
if (!wv->surface->touched) {
- wv->surface->touched = 1;
+ wv->surface->touched = true;
if (view->surface->buffer_type == BUFFER_TYPE_EGL ||
view->surface->need_swap)