summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2011-02-19 17:46:45 +0200
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2011-02-19 18:01:27 +0200
commit71e8a4c23019b01aa43b334fcb2784c70daae9b5 (patch)
tree750744afa0f48fe4b281b7b3aaab980416ac381a /configure.ac
parent48774c09d04a0b8d3533bdd6d5de6cfe58f54c2b (diff)
image: Avoid reusing pixman images for threadsafety.
The pixman_image_ref() and pixman_image_unref() functions aren't threadsafe in current pixman, so we can't share pixman images across contexts where they may end up moving between threads. The main use of these functions is in keeping a global cache of pixman_image_ts for solid colours and reusing the same pixman_image_t for patterns pointing to the same image data where possible. This patch removes those uses from cairo by wrapping them in a PIXMAN_HAS_ATOMIC_OPS conditional. There is no automatic test this, so we will have to manually turn this code back on when pixman does gain atomic ops. The only two remaining calls to pixman_image_ref() are done on locally created images so they are safe. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=34177
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions