From 001f174cf5b06e8725d46a659ef5416c241b45dd Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 21 Sep 2010 14:23:57 -0400 Subject: Big rework of image.c and the image cache system. Added a lot of comments, simplified call graphs. Added full (not second-class) support for images coming from named sources (files, icon themes). RrImage holds an RrImageSet. RrImageSet holds a bunch of RrImagePic, which are different sizes of a logical image. RrImageSet objects can be merged if it is discovered they (will) share an RrImagePic. The RrImage objects are updated to use the new merged RrImageSet. --- obrender/imagecache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'obrender/imagecache.h') diff --git a/obrender/imagecache.h b/obrender/imagecache.h index 9baf34bb..f9f5e4d2 100644 --- a/obrender/imagecache.h +++ b/obrender/imagecache.h @@ -45,13 +45,13 @@ struct _RrImageCache { */ gint max_resized_saved; - /*! A hash table of images in the cache that don't have a file name + /*! A hash table of image sets in the cache that don't have a file name attached to them, with their key being a hash of the contents of the image. */ GHashTable *pic_table; - /*! Used to find out if an image file has already been loaded. - Provides a quick file_name -> RrImage lookup. */ + /*! Used to find out if an image file has already been loaded into an + image set. Provides a quick file_name -> RrImageSet lookup. */ GHashTable *name_table; }; -- cgit v1.2.3