summaryrefslogtreecommitdiff
path: root/boilerplate/cairo-boilerplate-script.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-08-13 20:16:51 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-08-29 08:08:37 +0100
commit052211b072788f0977dccebdcf681d4874f2487a (patch)
tree4db1c2a539574a51fea2265def41c64dc54aabe8 /boilerplate/cairo-boilerplate-script.c
parent8f8b91d9049433c9210e0b3aad574cf659862ae0 (diff)
downloadcairo-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