diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-04-29 11:56:21 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-06-13 21:34:41 +0100 |
commit | b2eadb94f8e34d7c997b5ccfbca4d21e173fdd56 (patch) | |
tree | 3f4c3338c6835f5c559666a24d7aecd6bc0e15db /src/cairo-private.h | |
parent | c57b1eca18db12b8d56d73093d5cae28ed388298 (diff) | |
download | cairo-b2eadb94f8e34d7c997b5ccfbca4d21e173fdd56.tar.gz |
[cairo] Cache freed gstates.
Reduce the malloc pressure from frequent cairo_save()/cairo_restore() by
caching the freed gstates in a list on the context.
Diffstat (limited to 'src/cairo-private.h')
-rw-r--r-- | src/cairo-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-private.h b/src/cairo-private.h index a5faec832..43bd2232c 100644 --- a/src/cairo-private.h +++ b/src/cairo-private.h @@ -49,6 +49,7 @@ struct _cairo { cairo_gstate_t *gstate; cairo_gstate_t gstate_tail[1]; + cairo_gstate_t *gstate_freelist; cairo_path_fixed_t path[1]; }; |