Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/gl_glew
Modified Files:
evas_engine.c
Log Message:
cedric's cache changes patch
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/gl_glew/evas_engine.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- evas_engine.c 5 Aug 2007 07:22:44 -0000 1.1
+++ evas_engine.c 12 Apr 2008 00:32:26 -0000 1.2
@@ -572,6 +572,7 @@
im = image;
/* FIXME: can move to gl_common */
if (im->cs.space == cspace) return;
+ evas_cache_image_colorspace(&im->im.cache_entry, cspace);
switch (cspace)
{
case EVAS_COLORSPACE_ARGB8888:
@@ -581,13 +582,9 @@
im->cs.data = NULL;
im->cs.no_free = 0;
}
- if (!im->im->image->no_free)
- evas_common_image_surface_alloc(im->im->image);
break;
case EVAS_COLORSPACE_YCBCR422P601_PL:
case EVAS_COLORSPACE_YCBCR422P709_PL:
- evas_common_image_surface_dealloc(im->im->image);
- im->im->image->data = NULL;
if (im->tex) evas_gl_common_texture_free(im->tex);
im->tex = NULL;
if (im->cs.data)
@@ -844,14 +841,10 @@
static RGBA_Image *im = NULL;
if (!im)
- {
- im = evas_common_image_new();
- im->image = evas_common_image_surface_new(im);
- im->image->no_free = 1;
- }
- im->image->w = re->window->width;
- im->image->h = re->window->height;
- im->image->data = NULL;
+ im = (RGBA_Image *)
evas_cache_image_empty(evas_common_image_cache_get());
+ if (!im) return ;
+ evas_cache_image_surface_alloc(&im->cache_entry, re->window->width,
re->window->height);
+
evas_common_draw_context_font_ext_set(context,
re->window->gl_context,
evas_gl_font_texture_new,
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs