On Thu, Jul 2, 2015 at 3:57 PM, Cedric BAIL <moa.blueb...@gmail.com> wrote:

> Le 2 juil. 2015 07:42, "Jean-Philippe ANDRÉ" <j...@videolan.org> a écrit :
> >
> > jpeg pushed a commit to branch master.
> >
> >
>
> http://git.enlightenment.org/core/efl.git/commit/?id=681c8b0ec25a0a00325d32aa0f0178434bb54ae7
> >
> > commit 681c8b0ec25a0a00325d32aa0f0178434bb54ae7
> > Author: Jean-Philippe Andre <jp.an...@samsung.com>
> > Date:   Thu Jul 2 11:56:36 2015 +0900
> >
> >     Evas gl_cocoa: remove code duplicated from gl_generic
> >
> >     Remove the two functions:
> >     - image_data_get
> >     - image_data_put
>
> Are you sure ? Gl cocoa doesn't depend on gl generic at the moment !
>

I'm pretty sure the code is duplicated! :-P
Thanks for pointing this out, I reverted the patch.

But I guess no one is working on gl_cocoa at the moment and could do the
merge? :-(


 > ---
> >  src/modules/evas/engines/gl_cocoa/evas_engine.c | 146
> ------------------------
> >  1 file changed, 146 deletions(-)
> >
> > diff --git a/src/modules/evas/engines/gl_cocoa/evas_engine.c
> b/src/modules/evas/engines/gl_cocoa/evas_engine.c
> > index 5aab2c2..06d2f40 100644
> > --- a/src/modules/evas/engines/gl_cocoa/evas_engine.c
> > +++ b/src/modules/evas/engines/gl_cocoa/evas_engine.c
> > @@ -691,150 +691,6 @@ eng_image_dirty_region(void *data, void *image, int
> x, int y, int w, int h)
> >     return image;
> >  }
> >
> > -static void *
> > -eng_image_data_get(void *data, void *image, int to_write, DATA32
> **image_data, int *err)
> > -{
> > -   Render_Engine *re;
> > -   Evas_GL_Image *im;
> > -   int error;
> > -
> > -   re = (Render_Engine *)data;
> > -   if (!image)
> > -     {
> > -       *image_data = NULL;
> > -        if (err) *err = EVAS_LOAD_ERROR_GENERIC;
> > -       return NULL;
> > -     }
> > -   im = image;
> > -   if (im->native.data)
> > -     {
> > -        *image_data = NULL;
> > -        if (err) *err = EVAS_LOAD_ERROR_NONE;
> > -        return im;
> > -     }
> > -   if ((im->tex) && (im->tex->pt) && (im->tex->pt->dyn.data))
> > -     {
> > -        *image_data = im->tex->pt->dyn.data;
> > -        if (err) *err = EVAS_LOAD_ERROR_NONE;
> > -        return im;
> > -     }
> > -   eng_window_use(re->win);
> > -   error = evas_cache_image_load_data(&im->im->cache_entry);
> > -   evas_gl_common_image_alloc_ensure(im);
> > -   switch (im->cs.space)
> > -     {
> > -      case EVAS_COLORSPACE_ARGB8888:
> > -       if (to_write)
> > -         {
> > -            if (im->references > 1)
> > -              {
> > -                 Evas_GL_Image *im_new;
> > -
> > -                 im_new = evas_gl_common_image_new_from_copied_data
> > -                     (im->gc, im->im->cache_entry.w,
> im->im->cache_entry.h,
> > -                         im->im->image.data,
> > -                         eng_image_alpha_get(data, image),
> > -                         eng_image_colorspace_get(data, image));
> > -                 if (!im_new)
> > -                   {
> > -                      *image_data = NULL;
> > -                       if (err) *err =
> EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
> > -                      return im;
> > -                   }
> > -                 evas_gl_common_image_free(im);
> > -                 im = im_new;
> > -              }
> > -            else
> > -              evas_gl_common_image_dirty(im, 0, 0, 0, 0);
> > -         }
> > -       *image_data = im->im->image.data;
> > -       break;
> > -      case EVAS_COLORSPACE_YCBCR422P601_PL:
> > -      case EVAS_COLORSPACE_YCBCR422P709_PL:
> > -      case EVAS_COLORSPACE_YCBCR422601_PL:
> > -      case EVAS_COLORSPACE_YCBCR420NV12601_PL:
> > -      case EVAS_COLORSPACE_YCBCR420TM12601_PL:
> > -       *image_data = im->cs.data;
> > -       break;
> > -      default:
> > -       abort();
> > -       break;
> > -     }
> > -   if (err) *err = error;
> > -   return im;
> > -}
> > -
> > -static void *
> > -eng_image_data_put(void *data, void *image, DATA32 *image_data)
> > -{
> > -   Render_Engine *re;
> > -   Evas_GL_Image *im, *im2;
> > -
> > -   re = (Render_Engine *)data;
> > -   if (!image) return NULL;
> > -   im = image;
> > -   if (im->native.data) return image;
> > -   eng_window_use(re->win);
> > -   evas_gl_common_image_alloc_ensure(im);
> > -   if ((im->tex) && (im->tex->pt) && (im->tex->pt->dyn.data))
> > -     {
> > -        if (im->tex->pt->dyn.data == image_data)
> > -          {
> > -             return image;
> > -          }
> > -        else
> > -          {
> > -            int w, h;
> > -
> > -            w = im->im->cache_entry.w;
> > -            h = im->im->cache_entry.h;
> > -            im2 = eng_image_new_from_data(data, w, h, image_data,
> > -                                          eng_image_alpha_get(data,
> image),
> > -                                          eng_image_colorspace_get(data,
> image));
> > -            if (!im2) return im;
> > -            evas_gl_common_image_free(im);
> > -            im = im2;
> > -             evas_gl_common_image_dirty(im, 0, 0, 0, 0);
> > -             return im;
> > -          }
> > -     }
> > -   switch (im->cs.space)
> > -     {
> > -      case EVAS_COLORSPACE_ARGB8888:
> > -       if (image_data != im->im->image.data)
> > -         {
> > -            int w, h;
> > -
> > -            w = im->im->cache_entry.w;
> > -            h = im->im->cache_entry.h;
> > -            im2 = eng_image_new_from_data(data, w, h, image_data,
> > -                                          eng_image_alpha_get(data,
> image),
> > -                                          eng_image_colorspace_get(data,
> image));
> > -            if (!im2) return im;
> > -            evas_gl_common_image_free(im);
> > -            im = im2;
> > -         }
> > -        break;
> > -      case EVAS_COLORSPACE_YCBCR422P601_PL:
> > -      case EVAS_COLORSPACE_YCBCR422P709_PL:
> > -        if (image_data != im->cs.data)
> > -         {
> > -            if (im->cs.data)
> > -              {
> > -                 if (!im->cs.no_free) free(im->cs.data);
> > -              }
> > -            im->cs.data = image_data;
> > -         }
> > -       break;
> > -      default:
> > -       abort();
> > -       break;
> > -     }
> > -   /* hmmm - but if we wrote... why bother? */
> > -   evas_gl_common_image_dirty(im, 0, 0, 0, 0);
> > -   return im;
> > -}
> > -
> >  static void
> >  eng_image_data_preload_request(void *data EINA_UNUSED, void *image,
> const Eo *target)
> >  {
> > @@ -1385,8 +1241,6 @@ module_open(Evas_Module *em)
> >     ORD(image_size_get);
> >     ORD(image_size_set);
> >     ORD(image_dirty_region);
> > -   ORD(image_data_get);
> > -   ORD(image_data_put);
> >     ORD(image_data_preload_request);
> >     ORD(image_data_preload_cancel);
> >     ORD(image_alpha_set);
> >
> > --
> >
> >
> >
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Jean-Philippe André
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to