4#ifndef __GPU_DAMAGE_H__
5#define __GPU_DAMAGE_H__
17 if (!
w || !
h ||
x >=
d->width ||
y >=
d->height ||
18 w >
d->width -
x ||
h >
d->height -
y)
23 d->right = r;
d->bottom =
b;
d->dirty = 1;
27 if (r >
d->right)
d->right = r;
28 if (
b >
d->bottom)
d->bottom =
b;
36 if (++
d->next == 0) ++
d->next;
37 d->pending =
d->next;
d->busy = 1;
d->dirty = 0;
38 f->sequence =
d->pending;
39 f->x =
d->left;
f->y =
d->top;
40 f->width =
d->right -
d->left;
f->height =
d->bottom -
d->top;
50static inline void GpuDamageReset(
GpuDamage*
d) {
53 (void)GpuDamageAdd(
d, 0, 0,
d->width,
d->height);
size_t b
Definition main.cpp:156
unsigned int uint32_t
Definition acefiex.h:163
COMPILER_DEPENDENT_UINT64 uint64_t
Definition acefiex.h:165
const char * f
Definition drm_print.h:205
#define GPUSRV_E_EMPTY
Definition gpusrv.h:42
#define GPUSRV_E_BUSY
Definition gpusrv.h:41
#define GPUSRV_OK
Definition gpusrv.h:38
#define GPUSRV_E_INVAL
Definition gpusrv.h:40
int y
Definition layout.c:118
int h
Definition layout.c:118
int x
Definition layout.c:118
int w
Definition layout.c:118
#define d
Definition libunicode.c:1833
@ top
Definition p_spec.h:217
uint32_t bottom
Definition gpudamage.h:11
uint64_t next
Definition gpudamage.h:12
uint32_t height
Definition gpudamage.h:10
bool dirty
Definition term.cpp:55