diff options
author | Carl Worth <cworth@cworth.org> | 2005-09-12 11:15:52 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-09-12 11:15:52 +0000 |
commit | 999c2a8a2b27412ac2fb59041837c780e6d7eec3 (patch) | |
tree | c7a80a9784db70fd902f57b59fb23e2a42c6f0a5 /src/cairo-cache-private.h | |
parent | b1a38efd34c6b87581846de88b134b0dd6656753 (diff) | |
download | cairo-999c2a8a2b27412ac2fb59041837c780e6d7eec3.tar.gz |
Originally 2005-09-06 Carl Worth <cworth@cworth.org>:
_cairo_cache_preserve -> _cairo_cache_freeze _cairo_cache_release -> _cairo_cache_thaw
Track rename of _cairo_cache_freeze/thaw.
Track rename. Add stacking behavior to _cairo_cache_freeze/thaw. Abstract out shrinking from _cairo_cache_insert so that _cairo_cache_thaw will also shrink as necessary.
Make this function static since its current limitation to accept an entry rather than a key makes it not as externally useful as would be desirable. Document this limitation.
Diffstat (limited to 'src/cairo-cache-private.h')
-rw-r--r-- | src/cairo-cache-private.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cairo-cache-private.h b/src/cairo-cache-private.h index a89148b45..a75e8c0be 100644 --- a/src/cairo-cache-private.h +++ b/src/cairo-cache-private.h @@ -103,10 +103,10 @@ cairo_private void _cairo_cache_destroy (cairo_cache_t *cache); cairo_private void -_cairo_cache_preserve (cairo_cache_t *cache); +_cairo_cache_freeze (cairo_cache_t *cache); cairo_private void -_cairo_cache_release (cairo_cache_t *cache); +_cairo_cache_thaw (cairo_cache_t *cache); cairo_private cairo_bool_t _cairo_cache_lookup (cairo_cache_t *cache, @@ -118,10 +118,6 @@ _cairo_cache_insert (cairo_cache_t *cache, cairo_cache_entry_t *entry); cairo_private void -_cairo_cache_remove (cairo_cache_t *cache, - cairo_cache_entry_t *key); - -cairo_private void _cairo_cache_foreach (cairo_cache_t *cache, cairo_cache_callback_func_t cache_callback, void *closure); |