diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-13 20:16:51 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-29 08:08:37 +0100 |
commit | 052211b072788f0977dccebdcf681d4874f2487a (patch) | |
tree | 4db1c2a539574a51fea2265def41c64dc54aabe8 /boilerplate/cairo-boilerplate-script.c | |
parent | 8f8b91d9049433c9210e0b3aad574cf659862ae0 (diff) | |
download | cairo-052211b072788f0977dccebdcf681d4874f2487a.tar.gz |
[script] Garbage collect contexts on context switch
Previously the contexts were permanently associated with the surface and
only destroyed along with the final reference to the surface. This meant
that we kept a large number of unwanted contexts in memory. Most
applications only have a few contexts active at any time, so remove
inactive contexts from the operand stack every time we perform an
operation on a different context.
Diffstat (limited to 'boilerplate/cairo-boilerplate-script.c')
0 files changed, 0 insertions, 0 deletions