damage: Simplify DamageUnregister
authorAdam Jackson <ajax@redhat.com>
Mon, 26 Aug 2013 18:03:51 +0000 (14:03 -0400)
committerAdam Jackson <ajax@redhat.com>
Tue, 10 Sep 2013 18:28:35 +0000 (14:28 -0400)
commitd08966227e7d567df8d26eebc80f35f886e59a4a
tree582089dde20de0aab4e987b42d220a016c96b580
parent28708a045de7d9043d20fb06b61c44a46eb5526b
damage: Simplify DamageUnregister

You can only register one drawable on a given damage, so there's no
reason to require the caller to specify the drawable, the damage is
enough.  The implementation would do something fairly horrible if you
_did_ pass mismatched drawable and damage, so let's avoid the problem
entirely.

v2: Simplify xf86RotateDestroy even more [anholt]

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
composite/compalloc.c
hw/xfree86/modes/xf86Rotate.c
mi/misprite.c
miext/damage/damage.c
miext/damage/damage.h
miext/shadow/shadow.c