diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-14 13:47:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-14 13:47:43 +0100 |
commit | 84a3b6e2d0b8103cdc17558b502ecfc4c99b98a3 (patch) | |
tree | 3b20ebb9adcbfcf97fba4423966cb5df320a9499 /src/cairo-surface-snapshot.c | |
parent | 2c885a275349c65ec831738ed917ecd16fdd8c65 (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.c | 5 |
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); |