mutter/clutter/cogl/pango
Neil Roberts 9ea2567a2f cogl-atlas-texture: Don't let textures be destroyed during migration
If an atlas texture's last reference is held by the journal or by the
last flushed pipeline then if an atlas migration is started it can
cause a crash. This is because the atlas migration will cause a
journal flush and can sometimes change the current pipeline which
means that the texture would be destroyed during migration.

This patch adds an extra 'post_reorganize' callback to the existing
'reorganize' callback (which is now renamed to 'pre_reorganize'). The
pre_reorganize callback is now called before the atlas grabs a list of
the current textures instead of after so that it doesn't matter if the
journal flush destroys some of those textures. The pre_reorganize
callback for CoglAtlasTexture grabs a reference to all of the textures
so that they can not be destroyed when the migration changes the
pipeline. In the post_reorganize callback the reference is removed
again.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2538
2011-02-17 13:39:30 +00:00
..
cogl-pango-display-list.c path 2.0: update path API for experimental 2.0 API 2010-11-11 13:17:26 +00:00
cogl-pango-display-list.h pango: Use CoglMaterial type for materials 2010-11-03 18:09:23 +00:00
cogl-pango-fontmap.c
cogl-pango-glyph-cache.c cogl-atlas-texture: Don't let textures be destroyed during migration 2011-02-17 13:39:30 +00:00
cogl-pango-glyph-cache.h cogl-pango: Use a CoglAtlas to maintain the glyph cache 2010-08-12 11:56:59 +01:00
cogl-pango-private.h
cogl-pango-render.c pango: Use CoglMaterial type for materials 2010-11-03 18:09:23 +00:00
cogl-pango.h
Makefile.am