xserver-multidpi/miext
Adam Jackson 4e124203f2 damage: Make damageRegionProcessPending take a damage not a drawable
In the case where there's no damage monitor on the drawable, we look
that fact up twice: once before rendering to decide whether to compute
damage, and again after to decide whether to append it. This is wasted
effort, as the layer below us is effectively not allowed to change
whether there's a damage monitor for the drawable, but there's no way
the compiler can know that.

Instead, look it up once up front, and change the check macros and
damageRegionProcessPending to take a damage not a drawable.

v2: Explicitly pass pDamage to the macros as well (Michel Dänzer)

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2016-05-18 15:25:44 -04:00
..
damage damage: Make damageRegionProcessPending take a damage not a drawable 2016-05-18 15:25:44 -04:00
rootless rootless: Fix bogus handling of broken root clip 2015-09-21 17:44:48 -04:00
shadow Convert mi & miext to new *allocarray functions 2015-04-21 16:58:08 -07:00
sync Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
Makefile.am rootless: Build unconditionally 2015-07-08 16:41:28 -04:00