Lines Matching defs:pDamageExt
91 DamageExtNotify(DamageExtPtr pDamageExt, BoxPtr pBoxes, int nBoxes)
93 ClientPtr pClient = pDamageExt->pClient;
94 DrawablePtr pDrawable = pDamageExt->pDrawable;
103 .level = pDamageExt->level,
104 .drawable = pDamageExt->drawable,
105 .damage = pDamageExt->id,
114 ev.level = pDamageExt->level;
138 DamageExtPtr pDamageExt = closure;
140 switch (pDamageExt->level) {
143 DamageExtNotify(pDamageExt, RegionRects(pRegion),
147 DamageExtNotify(pDamageExt, RegionExtents(pRegion), 1);
150 DamageExtNotify(pDamageExt, NullBox, 0);
160 DamageExtPtr pDamageExt = closure;
162 pDamageExt->pDamage = 0;
163 if (pDamageExt->id)
164 FreeResource(pDamageExt->id, RT_NONE);
232 DamageExtPtr pDamageExt = malloc(sizeof(DamageExtRec));
233 if (!pDamageExt)
236 pDamageExt->id = id;
237 pDamageExt->drawable = drawable;
238 pDamageExt->pDrawable = pDrawable;
239 pDamageExt->level = level;
240 pDamageExt->pClient = client;
241 pDamageExt->pDamage = DamageCreate(DamageExtReport, DamageExtDestroy, level,
242 FALSE, pDrawable->pScreen, pDamageExt);
243 if (!pDamageExt->pDamage) {
244 free(pDamageExt);
248 if (!AddResource(id, DamageExtType, (void *) pDamageExt))
251 DamageExtRegister(pDrawable, pDamageExt->pDamage,
254 return pDamageExt;
261 DamageExtPtr pDamageExt;
290 pDamageExt = DamageExtCreate(pDrawable, level, client, stuff->damage,
292 if (!pDamageExt)
295 return pDamageExt;
313 DamageExtPtr pDamageExt;
316 VERIFY_DAMAGEEXT(pDamageExt, stuff->damage, client, DixWriteAccess);
323 DamageExtSubtractWindowClip(DamageExtPtr pDamageExt)
325 WindowPtr win = (WindowPtr)pDamageExt->pDrawable;
376 DamageExtSubtract(DamageExtPtr pDamageExt, const RegionPtr pRegion)
378 DamagePtr pDamage = pDamageExt->pDamage;
385 if (pDamageExt->pDrawable->type == DRAWABLE_WINDOW) {
386 DrawablePtr pDraw = pDamageExt->pDrawable;
387 RegionPtr clip = DamageExtSubtractWindowClip(pDamageExt);
407 DamageExtPtr pDamageExt;
412 VERIFY_DAMAGEEXT(pDamageExt, stuff->damage, client, DixWriteAccess);
416 if (pDamageExt->level != DamageReportRawRegion) {
417 DamagePtr pDamage = pDamageExt->pDamage;
422 if (DamageExtSubtract(pDamageExt, pRepair))
424 (void *) pDamageExt);
576 DamageExtPtr pDamageExt = (DamageExtPtr) value;
581 pDamageExt->id = 0;
582 if (pDamageExt->pDamage) {
583 DamageDestroy(pDamageExt->pDamage);
585 free(pDamageExt);
612 DamageExtPtr pDamageExt = res->ext;
625 DamageReportDamage(pDamageExt->pDamage, pRegion);