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.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'obrender/imagecache.c') diff --git a/obrender/imagecache.c b/obrender/imagecache.c index ad1183e4..909d8746 100644 --- a/obrender/imagecache.c +++ b/obrender/imagecache.c @@ -58,21 +58,6 @@ void RrImageCacheUnref(RrImageCache *self) } } -RrImage* RrImageCacheFindName(RrImageCache *self, const gchar *name) -{ - return g_hash_table_lookup(self->name_table, name); -} - -/*! Finds an image in the cache, if it is already in there */ -RrImage* RrImageCacheFind(RrImageCache *self, - RrPixel32 *data, gint w, gint h) -{ - RrImagePic pic; - - RrImagePicInit(&pic, NULL, w, h, data); - return g_hash_table_lookup(self->pic_table, &pic); -} - #define hashsize(n) ((RrPixel32)1<<(n)) #define hashmask(n) (hashsize(n)-1) #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) -- cgit v1.2.3