From: Pekka Paalanen Date: Tue, 26 Apr 2016 12:50:58 +0000 (+0300) Subject: compositor: constify weston_surface_build_buffer_matrix() X-Git-Tag: upstream/5.0.0~1124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04baea58fed49c14c65bdf707e847c0673914bc9;p=platform%2Fupstream%2Fweston.git compositor: constify weston_surface_build_buffer_matrix() Makes it easier to see that it does not change weston_surface state implicitly. Signed-off-by: Pekka Paalanen Reviewed-by: Bryce Harrington --- diff --git a/src/compositor.c b/src/compositor.c index 94e1b9f..83a5391 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2708,10 +2708,10 @@ weston_surface_commit_subsurface_order(struct weston_surface *surface) } static void -weston_surface_build_buffer_matrix(struct weston_surface *surface, +weston_surface_build_buffer_matrix(const struct weston_surface *surface, struct weston_matrix *matrix) { - struct weston_buffer_viewport *vp = &surface->buffer_viewport; + const struct weston_buffer_viewport *vp = &surface->buffer_viewport; double src_width, src_height, dest_width, dest_height; weston_matrix_init(matrix);