diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-02-28 14:58:57 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-02-28 14:58:57 -0500 |
commit | d0fe666a6ab1664af36a7b242d763c72f4e9f81b (patch) | |
tree | 2c557e3546ab3a3a12f0dab302db50d36b12a0d9 /src/cairoint.h | |
parent | 5f5afac8f470ae13ab2827f04e05ca585d69b898 (diff) |
Revert the solid-pattern cache
This reverts the following commits:
2715f2098127d04d2f9e304580a26cd0842c0e64
67e3b3c53bdd69e4d3503eed2db66953f1ac038c
See this thread for an analysis of the problems it caused:
http://lists.freedesktop.org/archives/cairo/2007-February/009825.html
In short, a single cache for all backends doesn't work, as one thread
using any backend can cause an unused xlib pattern to be evicted from
the cache, and trigger an xlib call while the display is being used
from another thread. Xlib is not prepared for this.
Diffstat (limited to 'src/cairoint.h')
-rwxr-xr-x | src/cairoint.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/cairoint.h b/src/cairoint.h index 2233c9c5..890929f0 100755 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -1005,10 +1005,6 @@ struct _cairo_surface_backend { cairo_surface_t * (*snapshot) (void *surface); - - cairo_bool_t - (*is_compatible) (void *surface_a, - void *surface_b); }; typedef struct _cairo_format_masks { @@ -1579,10 +1575,6 @@ _cairo_color_get_rgba_premultiplied (cairo_color_t *color, double *blue, double *alpha); -cairo_private cairo_bool_t -_cairo_color_equal (cairo_color_t *color_a, - cairo_color_t *color_b); - /* cairo-font.c */ cairo_private void @@ -2010,10 +2002,6 @@ _cairo_surface_clone_similar (cairo_surface_t *surface, cairo_private cairo_surface_t * _cairo_surface_snapshot (cairo_surface_t *surface); -cairo_private cairo_bool_t -_cairo_surface_is_compatible (cairo_surface_t *surface_a, - cairo_surface_t *surface_b); - cairo_private unsigned int _cairo_surface_get_current_clip_serial (cairo_surface_t *surface); @@ -2445,9 +2433,6 @@ cairo_private cairo_status_t _cairo_pattern_get_extents (cairo_pattern_t *pattern, cairo_rectangle_int16_t *extents); -cairo_private void -_cairo_pattern_reset_static_data (void); - cairo_private cairo_status_t _cairo_gstate_set_antialias (cairo_gstate_t *gstate, cairo_antialias_t antialias); |