Enlightenment CVS committal Author : cedric Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/cache Modified Files: evas_cache_image.c Log Message: Only call the allocation surface when required and correctly handle no_free. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/cache/evas_cache_image.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- evas_cache_image.c 17 Apr 2008 15:30:03 -0000 1.15 +++ evas_cache_image.c 6 May 2008 11:20:29 -0000 1.16 @@ -164,6 +164,8 @@ ie->space = EVAS_COLORSPACE_ARGB8888; ie->w = -1; ie->h = -1; + ie->allocated.w = 0; + ie->allocated.h = 0; ie->references = 0; ie->cache = cache; @@ -209,6 +211,9 @@ wmin = w > 0 ? w : 1; hmin = h > 0 ? h : 1; + if (ie->allocated.w == wmin && ie->allocated.h == hmin) + return ; + if (cache->func.surface_alloc(ie, wmin, hmin)) { wmin = 0; @@ -216,6 +221,8 @@ } ie->w = wmin; ie->h = hmin; + ie->allocated.w = wmin; + ie->allocated.h = hmin; } EAPI int ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs