mirror of
https://github.com/brl/mutter.git
synced 2025-03-13 14:55:05 +00:00

Following the EGL_KHR_swap_buffers_with_damage specification, the surface damage used by eglSwapBuffersWithDamage does not need to contain the damage history. Rework that to initialize swap_region earlier, before appending the damage history. This may help optimizing the composition process in some cases (at least on X11 when EGL_KHR_swap_buffers_with_damage is available) by not accumulating additional regions as damaged unnecessarily. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2241>