compositor: Move clearing of primary plane damage to the backends
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 22 Nov 2012 13:57:00 +0000 (15:57 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 27 Nov 2012 22:36:38 +0000 (17:36 -0500)
commit11f971c18ebad912d2bf3022fe62aa804a59c274
tree466f88238be762fcb77b4f8633a12e99783e667a
parent91a2284140b6b62b6a47d90b4796525c67e7fdda
compositor: Move clearing of primary plane damage to the backends

Backends may move surfaces to different planes, in which case damage is
generated in the primary plane. This damage is usually passed to the
renderer, but in some cases the backend may decide to not render
anything (that's the case when drm compositor scans out a client
buffer). In that case the damage on the primary plane would be
discarded, leading to artifacts later.

This patch makes the backend's responsibility to clear the damage on
the primary plane, so that unrendered damage is kept for as long as
necessary.
src/compositor-android.c
src/compositor-drm.c
src/compositor-wayland.c
src/compositor-x11.c
src/compositor.c