diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-07 00:24:17 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-07 00:24:17 +0100 |
commit | 4e443cbef589e016d085e8023677f47c1f01a858 (patch) | |
tree | 76ff1fda6b16934a648d0786cffee040f86e24fd /src/sna/sna_damage.c | |
parent | 367298c5109b47fa4961a60fa3cb454c800f02c3 (diff) |
sna: Add some more debug commentary to render picture source migration
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_damage.c')
-rw-r--r-- | src/sna/sna_damage.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/sna/sna_damage.c b/src/sna/sna_damage.c index 21af2d0a..63e83417 100644 --- a/src/sna/sna_damage.c +++ b/src/sna/sna_damage.c @@ -614,7 +614,7 @@ fastcall struct sna_damage *_sna_damage_subtract_box(struct sna_damage *damage, #endif static int _sna_damage_contains_box(struct sna_damage *damage, - const BoxPtr box) + const BoxRec *box) { if (!damage) return PIXMAN_REGION_OUT;; @@ -625,12 +625,12 @@ static int _sna_damage_contains_box(struct sna_damage *damage, if (damage->n) __sna_damage_reduce(damage); - return pixman_region_contains_rectangle(&damage->region, box); + return pixman_region_contains_rectangle(&damage->region, (BoxPtr)box); } #if DEBUG_DAMAGE int sna_damage_contains_box(struct sna_damage *damage, - const BoxPtr box) + const BoxRec *box) { char damage_buf[1000]; int ret; @@ -640,13 +640,17 @@ int sna_damage_contains_box(struct sna_damage *damage, box->x1, box->y1, box->x2, box->y2)); ret = _sna_damage_contains_box(damage, box); - ErrorF(" = %d\n", ret); + ErrorF(" = %d", ret); + if (ret) + ErrorF(" [(%d, %d), (%d, %d)...]", + box->x1, box->y1, box->x2, box->y2); + ErrorF("\n"); return ret; } #else int sna_damage_contains_box(struct sna_damage *damage, - const BoxPtr box) + const BoxRec *box) { return _sna_damage_contains_box(damage, box); } |