[PATCH weston 1/2] compositor: fix comments about weston_compositor::surface_list

Yong Bakos junk at humanoriented.com
Tue May 10 14:31:34 UTC 2016


On May 10, 2016, at 9:10 AM, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> 
> From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> 
> a7af70436b7dccfacd736626d6719b3e751fd985 converted the surface list into
> a view list.
> 
> It looks like weston_surface::output's comment about surface list does
> not apply to view list. Still, many places assume weston_surface::output
> is not NULL when processing "visible" surfaces, e.g. those reachable via
> the view list.
> 
> The comment on weston_view::output is updated, but I could not figure
> out the actual relationship between that and being on the view list.
> 
> weston_view::link is documented to be in weston_compositor::view_list,
> and weston_compositor::view_list is documented to contain weston_views.
> 
> Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

All comment additions in 1 and 2 look good to me.

Reviewed-by: Yong Bakos <ybakos at humanoriented.com>

yong


> ---
> src/compositor.h | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/src/compositor.h b/src/compositor.h
> index a95f05d..7851000 100644
> --- a/src/compositor.h
> +++ b/src/compositor.h
> @@ -754,7 +754,7 @@ struct weston_compositor {
> 	struct wl_list output_list;
> 	struct wl_list seat_list;
> 	struct wl_list layer_list;
> -	struct wl_list view_list;
> +	struct wl_list view_list;	/* struct weston_view::link */
> 	struct wl_list plane_list;
> 	struct wl_list key_binding_list;
> 	struct wl_list modifier_binding_list;
> @@ -890,7 +890,7 @@ struct weston_view {
> 	struct wl_list surface_link;
> 	struct wl_signal destroy_signal;
> 
> -	struct wl_list link;
> +	struct wl_list link;             /* weston_compositor::view_list */
> 	struct weston_layer_entry layer_link; /* part of geometry */
> 	struct weston_plane *plane;
> 
> @@ -951,7 +951,7 @@ struct weston_view {
> 	/*
> 	 * Which output to vsync this surface to.
> 	 * Used to determine, whether to send or queue frame events.
> -	 * Must be NULL, if 'link' is not in weston_compositor::surface_list.
> +	 * Must be NULL, if 'link' is not in weston_compositor::view_list.
> 	 */
> 	struct weston_output *output;
> 
> @@ -1021,7 +1021,6 @@ struct weston_surface {
> 	/*
> 	 * Which output to vsync this surface to.
> 	 * Used to determine, whether to send or queue frame events.
> -	 * Must be NULL, if 'link' is not in weston_compositor::surface_list.
> 	 */
> 	struct weston_output *output;
> 
> -- 
> 2.7.3
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel



More information about the wayland-devel mailing list