Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/modules/engines/software_ddraw


Modified Files:
        evas_outbuf.c 


Log Message:
use image cache

===================================================================
RCS file: 
/cvs/e/e17/libs/evas/src/modules/engines/software_ddraw/evas_outbuf.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- evas_outbuf.c       27 May 2007 06:43:23 -0000      1.1
+++ evas_outbuf.c       16 Jul 2007 07:56:41 -0000      1.2
@@ -151,8 +151,7 @@
        (buf->priv.mask.g == 0x00ff00) &&

        (buf->priv.mask.b == 0x0000ff))

      {

-        im = evas_common_image_new();

-        im->image = evas_common_image_surface_new(im);

+        im = evas_cache_image_empty(evas_common_image_cache_get());

         im->image->w = width;

         im->image->h = height;

         im->image->data = NULL;

@@ -166,7 +165,10 @@
      }

    else

      {

-        im = evas_common_image_create(width, height);

+        im = evas_cache_image_empty(evas_common_image_cache_get());

+        im->image->w = width;

+        im->image->h = height;

+        evas_common_image_surface_alloc(im->image);

         im->extended_info = ddob;

         if ((buf->rot == 0) || (buf->rot == 180))

           ddob = evas_software_ddraw_output_buffer_new(buf->priv.dd.depth,

@@ -244,7 +246,7 @@
         buf->priv.pending_writes = 
evas_list_remove_list(buf->priv.pending_writes,

                                                          
buf->priv.pending_writes);

         ddob = im->extended_info;

-        evas_common_image_free(im);

+        evas_cache_image_drop(im);

         if (ddob) evas_software_ddraw_output_buffer_free(ddob);

      }

    evas_common_cpu_end_opt();




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to