[cp-patches] FYI: Cache freetype map

Francis Kung fkung at redhat.com
Thu Apr 12 15:51:30 UTC 2007


Hi,

This patch caches the Freetype font map, rather than creating & 
destroying a new one for each font peer we create.  This enables Pango's 
internal caching and mostly fixes the ProgressBar memory leak.

Cheers,
Francis


2007-04-12  Francis Kung  <fkung at redhat.com>

	PR 31539
	* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
	(ft2_map): New static variable.
	(Java_gnu_java_awt_peer_gtk_GdkFontPeer_initStaticState): Set up ft2_map.
	(Java_gnu_java_awt_peer_gtk_GdkFontPeer_setFont): Use cached ft2_map.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pango-cache.diff
Type: text/x-patch
Size: 1386 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20070412/3d3b8d22/pango-cache.bin


More information about the Classpath-patches mailing list