mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-18 06:00:47 +01:00
compositor: Add tracing for damage
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
86a89a8c1d
commit
eafa127001
1 changed files with 30 additions and 5 deletions
|
|
@ -67,9 +67,14 @@ _cairo_compositor_paint (const cairo_compositor_t *compositor,
|
|||
compositor = compositor->delegate;
|
||||
} while (status == CAIRO_INT_STATUS_UNSUPPORTED);
|
||||
|
||||
if (status == CAIRO_INT_STATUS_SUCCESS && surface->damage)
|
||||
if (status == CAIRO_INT_STATUS_SUCCESS && surface->damage) {
|
||||
TRACE ((stderr, "%s: applying damage (%d,%d)x(%d, %d)\n",
|
||||
__FUNCTION__,
|
||||
extents.unbounded.x, extents.unbounded.y,
|
||||
extents.unbounded.width, extents.unbounded.height));
|
||||
surface->damage = _cairo_damage_add_rectangle (surface->damage,
|
||||
&extents.unbounded);
|
||||
}
|
||||
|
||||
_cairo_composite_rectangles_fini (&extents);
|
||||
|
||||
|
|
@ -103,9 +108,14 @@ _cairo_compositor_mask (const cairo_compositor_t *compositor,
|
|||
compositor = compositor->delegate;
|
||||
} while (status == CAIRO_INT_STATUS_UNSUPPORTED);
|
||||
|
||||
if (status == CAIRO_INT_STATUS_SUCCESS && surface->damage)
|
||||
if (status == CAIRO_INT_STATUS_SUCCESS && surface->damage) {
|
||||
TRACE ((stderr, "%s: applying damage (%d,%d)x(%d, %d)\n",
|
||||
__FUNCTION__,
|
||||
extents.unbounded.x, extents.unbounded.y,
|
||||
extents.unbounded.width, extents.unbounded.height));
|
||||
surface->damage = _cairo_damage_add_rectangle (surface->damage,
|
||||
&extents.unbounded);
|
||||
}
|
||||
|
||||
_cairo_composite_rectangles_fini (&extents);
|
||||
|
||||
|
|
@ -147,9 +157,14 @@ _cairo_compositor_stroke (const cairo_compositor_t *compositor,
|
|||
compositor = compositor->delegate;
|
||||
} while (status == CAIRO_INT_STATUS_UNSUPPORTED);
|
||||
|
||||
if (status == CAIRO_INT_STATUS_SUCCESS && surface->damage)
|
||||
if (status == CAIRO_INT_STATUS_SUCCESS && surface->damage) {
|
||||
TRACE ((stderr, "%s: applying damage (%d,%d)x(%d, %d)\n",
|
||||
__FUNCTION__,
|
||||
extents.unbounded.x, extents.unbounded.y,
|
||||
extents.unbounded.width, extents.unbounded.height));
|
||||
surface->damage = _cairo_damage_add_rectangle (surface->damage,
|
||||
&extents.unbounded);
|
||||
}
|
||||
|
||||
_cairo_composite_rectangles_fini (&extents);
|
||||
|
||||
|
|
@ -187,9 +202,14 @@ _cairo_compositor_fill (const cairo_compositor_t *compositor,
|
|||
compositor = compositor->delegate;
|
||||
} while (status == CAIRO_INT_STATUS_UNSUPPORTED);
|
||||
|
||||
if (status == CAIRO_INT_STATUS_SUCCESS && surface->damage)
|
||||
if (status == CAIRO_INT_STATUS_SUCCESS && surface->damage) {
|
||||
TRACE ((stderr, "%s: applying damage (%d,%d)x(%d, %d)\n",
|
||||
__FUNCTION__,
|
||||
extents.unbounded.x, extents.unbounded.y,
|
||||
extents.unbounded.width, extents.unbounded.height));
|
||||
surface->damage = _cairo_damage_add_rectangle (surface->damage,
|
||||
&extents.unbounded);
|
||||
}
|
||||
|
||||
_cairo_composite_rectangles_fini (&extents);
|
||||
|
||||
|
|
@ -229,9 +249,14 @@ _cairo_compositor_glyphs (const cairo_compositor_t *compositor,
|
|||
compositor = compositor->delegate;
|
||||
} while (status == CAIRO_INT_STATUS_UNSUPPORTED);
|
||||
|
||||
if (status == CAIRO_INT_STATUS_SUCCESS && surface->damage)
|
||||
if (status == CAIRO_INT_STATUS_SUCCESS && surface->damage) {
|
||||
TRACE ((stderr, "%s: applying damage (%d,%d)x(%d, %d)\n",
|
||||
__FUNCTION__,
|
||||
extents.unbounded.x, extents.unbounded.y,
|
||||
extents.unbounded.width, extents.unbounded.height));
|
||||
surface->damage = _cairo_damage_add_rectangle (surface->damage,
|
||||
&extents.unbounded);
|
||||
}
|
||||
|
||||
_cairo_composite_rectangles_fini (&extents);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue