summaryrefslogtreecommitdiff
path: root/src/cairo-surface-snapshot.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-08-14 13:47:14 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-08-14 13:47:43 +0100
commit84a3b6e2d0b8103cdc17558b502ecfc4c99b98a3 (patch)
tree3b20ebb9adcbfcf97fba4423966cb5df320a9499 /src/cairo-surface-snapshot.c
parent2c885a275349c65ec831738ed917ecd16fdd8c65 (diff)
xlib: Mark surfaces as finished when the Display is finished/destroyed/closed.
Fixes xlib-surface-source with the recording-surface Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-surface-snapshot.c')
-rw-r--r--src/cairo-surface-snapshot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-surface-snapshot.c b/src/cairo-surface-snapshot.c
index c499e0b4..16153e21 100644
--- a/src/cairo-surface-snapshot.c
+++ b/src/cairo-surface-snapshot.c
@@ -145,7 +145,10 @@ _cairo_surface_snapshot_copy_on_write (cairo_surface_t *surface)
goto done;
}
- /* XXX copy to a similar surface, leave acquisition till later? */
+ /* XXX copy to a similar surface, leave acquisition till later?
+ * We should probably leave such decisions to the backend in case we
+ * rely upon devices/connections like Xlib.
+ */
status = _cairo_surface_acquire_source_image (snapshot->target, &image, &extra);
if (unlikely (status)) {
snapshot->target = _cairo_surface_create_in_error (status);