cosmetic: update comments that refer to weston_surface_update_transform()

weston_surface_update_transform() no longer exists, except in comments.

Fix that.

[Pekka Paalanen: don't lose the full comment in compositor-drm.c.]

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
dev
Derek Foreman 10 years ago committed by Pekka Paalanen
parent 2623786277
commit 4b1a0a1d07
  1. 2
      desktop-shell/shell.c
  2. 2
      src/compositor-drm.c
  3. 4
      src/compositor.c

@ -4706,7 +4706,7 @@ rotate_grab_motion(struct weston_pointer_grab *grab, uint32_t time,
shsurf->view->geometry.y + dposy); shsurf->view->geometry.y + dposy);
} }
/* Repaint implies weston_surface_update_transform(), which /* Repaint implies weston_view_update_transform(), which
* lazily applies the damage due to rotation update. * lazily applies the damage due to rotation update.
*/ */
weston_compositor_schedule_repaint(shsurf->surface->compositor); weston_compositor_schedule_repaint(shsurf->surface->compositor);

@ -900,7 +900,7 @@ drm_output_prepare_overlay_view(struct weston_output *output_base,
/* /*
* Calculate the source & dest rects properly based on actual * Calculate the source & dest rects properly based on actual
* position (note the caller has called weston_surface_update_transform() * position (note the caller has called weston_view_update_transform()
* for us already). * for us already).
*/ */
pixman_region32_init(&dest_rect); pixman_region32_init(&dest_rect);

@ -2621,13 +2621,13 @@ subsurface_configure(struct weston_surface *surface, int32_t dx, int32_t dy)
if (!weston_surface_is_mapped(surface)) { if (!weston_surface_is_mapped(surface)) {
struct weston_output *output; struct weston_output *output;
/* Cannot call weston_surface_update_transform(), /* Cannot call weston_view_update_transform(),
* because that would call it also for the parent surface, * because that would call it also for the parent surface,
* which might not be mapped yet. That would lead to * which might not be mapped yet. That would lead to
* inconsistent state, where the window could never be * inconsistent state, where the window could never be
* mapped. * mapped.
* *
* Instead just assing any output, to make * Instead just assign any output, to make
* weston_surface_is_mapped() return true, so that when the * weston_surface_is_mapped() return true, so that when the
* parent surface does get mapped, this one will get * parent surface does get mapped, this one will get
* included, too. See view_list_add(). * included, too. See view_list_add().

Loading…
Cancel
Save