~wayland.admin/wayland/master

Viewing all changes in revision 2099.

  • Committer: Derek Foreman
  • Author(s): Simon Ser
  • Date: 2018-11-30 15:25:14 UTC
  • Revision ID: git-v1:921d0548035673a1bf6aeb9396b9bc728133411e
protocol: prefer wl_surface.damage_buffer

This commit makes wl_surface.damage_buffer preferred over wl_surface.damage.
wl_surface.damage can be implemented in a non-optimal way by the compositor
(e.g. by always damaging the whole buffer).

Having two requests makes it complicated for the compositor to handle damage,
making it necessary to transform one into the other's coordinates.

Moreover, integration with wp_viewporter is tricky.

Signed-off-by: Simon Ser <contact@emersion.fr>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derek.foreman.samsung@gmail.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: