dix: Remove PRIVATE_DAMAGE
None of this is actually wired up to anything, so we can also remove the devPrivates from the DamageRec. The DamageExtRec is what would need devPrivates for selinux labeling, in principle. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
40c12a76c2
commit
4e76c27117
|
@ -105,7 +105,6 @@ static const char *key_names[PRIVATE_LAST] = {
|
|||
[PRIVATE_CURSOR_BITS] = "CURSOR_BITS",
|
||||
|
||||
/* extension privates */
|
||||
[PRIVATE_DAMAGE] = "DAMAGE",
|
||||
[PRIVATE_GLYPH] = "GLYPH",
|
||||
[PRIVATE_GLYPHSET] = "GLYPHSET",
|
||||
[PRIVATE_PICTURE] = "PICTURE",
|
||||
|
|
|
@ -46,7 +46,6 @@ typedef enum {
|
|||
PRIVATE_CURSOR_BITS,
|
||||
|
||||
/* extension privates */
|
||||
PRIVATE_DAMAGE,
|
||||
PRIVATE_GLYPH,
|
||||
PRIVATE_GLYPHSET,
|
||||
PRIVATE_PICTURE,
|
||||
|
|
|
@ -1696,7 +1696,7 @@ DamageCreate(DamageReportFunc damageReport,
|
|||
damageScrPriv(pScreen);
|
||||
DamagePtr pDamage;
|
||||
|
||||
pDamage = dixAllocateObjectWithPrivates(DamageRec, PRIVATE_DAMAGE);
|
||||
pDamage = calloc(1, sizeof(DamageRec));
|
||||
if (!pDamage)
|
||||
return 0;
|
||||
pDamage->pNext = 0;
|
||||
|
@ -1821,7 +1821,7 @@ DamageDestroy(DamagePtr pDamage)
|
|||
(*pScrPriv->funcs.Destroy) (pDamage);
|
||||
RegionUninit(&pDamage->damage);
|
||||
RegionUninit(&pDamage->pendingDamage);
|
||||
dixFreeObjectWithPrivates(pDamage, PRIVATE_DAMAGE);
|
||||
free(pDamage);
|
||||
}
|
||||
|
||||
Bool
|
||||
|
|
|
@ -49,7 +49,6 @@ typedef struct _damage {
|
|||
Bool reportAfter;
|
||||
RegionRec pendingDamage; /* will be flushed post submission at the latest */
|
||||
ScreenPtr pScreen;
|
||||
PrivateRec *devPrivates;
|
||||
} DamageRec;
|
||||
|
||||
typedef struct _damageScrPriv {
|
||||
|
|
Loading…
Reference in New Issue