summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-04-03 18:10:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-04-23 14:39:21 +0100
commit4438cc6a49e7e902dce045706f7125a2c3e2174b (patch)
tree610c0041a53ebbaf46f35574199f956c35eb4704
parent0fc140abc3c848e72b1b2b959026355fdbd6a941 (diff)
cairo: Use explicit device flushing.
Now with the concept of a cairo_device_t and the ability to flush it, we now longer require the heuristic of automatically flushing on behalf of the user at the end of every context.
-rw-r--r--src/cairo.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cairo.c b/src/cairo.c
index 3cb9b365..07194688 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -265,8 +265,6 @@ cairo_reference (cairo_t *cr)
void
cairo_destroy (cairo_t *cr)
{
- cairo_surface_t *surface;
-
if (cr == NULL || CAIRO_REFERENCE_COUNT_IS_INVALID (&cr->ref_count))
return;
@@ -280,15 +278,6 @@ cairo_destroy (cairo_t *cr)
break;
}
- /* The context is expected (>99% of all use cases) to be held for the
- * duration of a single expose event/sequence of graphic operations.
- * Therefore, on destroy we explicitly flush the Cairo pipeline of any
- * pending operations.
- */
- surface = _cairo_gstate_get_original_target (cr->gstate);
- if (surface != NULL)
- cairo_surface_flush (surface);
-
_cairo_gstate_fini (cr->gstate);
cr->gstate_freelist = cr->gstate_freelist->next; /* skip over tail[1] */
while (cr->gstate_freelist != NULL) {