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/cairo-color.c | |
parent | 5f5afac8f470ae13ab2827f04e05ca585d69b898 (diff) | |
download | cairo-d0fe666a6ab1664af36a7b242d763c72f4e9f81b.tar.gz |
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/cairo-color.c')
-rw-r--r-- | src/cairo-color.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cairo-color.c b/src/cairo-color.c index 068816740..a34883926 100644 --- a/src/cairo-color.c +++ b/src/cairo-color.c @@ -159,10 +159,3 @@ _cairo_color_get_rgba_premultiplied (cairo_color_t *color, *blue = color->blue * color->alpha; *alpha = color->alpha; } - -cairo_bool_t -_cairo_color_equal (cairo_color_t *color_a, - cairo_color_t *color_b) -{ - return (memcmp (color_a, color_b, sizeof (cairo_color_t)) == 0); -} |