remove evas_gl_context_dirty api
authorPark SangHee <sh15.park@samsung.com>
Tue, 13 Mar 2012 03:52:49 +0000 (12:52 +0900)
committerPark SangHee <sh15.park@samsung.com>
Tue, 13 Mar 2012 03:52:49 +0000 (12:52 +0900)
src/lib/Evas.h
src/lib/canvas/evas_render.c
src/lib/include/evas_private.h
src/modules/engines/gl_x11/evas_engine.c
src/modules/engines/software_generic/evas_engine.c

index e630a45..663a469 100644 (file)
@@ -1489,21 +1489,6 @@ EAPI void              evas_obscured_rectangle_add       (Evas *e, int x, int y,
 EAPI void              evas_obscured_clear               (Evas *e) EINA_ARG_NONNULL(1);
 
 /**
- * Notifies Evas that the gl current context and surface has been set
- * by another gl program outside of Evas.  This will invalidate the
- * current context/surface within Evas and force Evas to set the
- * context/surface again next time it draws something.
- *
- * @param e The given canvas pointer.
- *
- * @note This should be used when GL is rendered using anything other
- * than Evas_GL.
- *
- * @ingroup Evas_Canvas
- */
-EAPI void              evas_gl_context_dirty             (Evas *e) EINA_ARG_NONNULL(1);
-
-/**
  * Force immediate renderization of the given Evas canvas.
  *
  * @param e The given canvas pointer.
index 15fbbed..cd73db7 100644 (file)
@@ -88,17 +88,6 @@ evas_obscured_clear(Evas *e)
      }
 }
 
-EAPI void
-evas_gl_context_dirty(Evas *e)
-{
-   MAGIC_CHECK(e, Evas, MAGIC_EVAS);
-   return;
-   MAGIC_CHECK_END();
-
-   if (e->engine.func->gl_context_dirty)
-      e->engine.func->gl_context_dirty(e->engine.data.output);
-}
-
 static Eina_Bool
 _evas_render_has_map(Evas_Object *obj)
 {
index af15741..2e9eb79 100644 (file)
@@ -865,8 +865,6 @@ struct _Evas_Func
 
    /* max size query */
    void (*image_max_size_get)            (void *data, int *maxw, int *maxh);
-
-   void (*gl_context_dirty)              (void *data);
 };
 
 struct _Evas_Image_Load_Func
index 7ccdd27..a7a83a9 100644 (file)
@@ -4081,31 +4081,6 @@ eng_gl_img_obj_set(void *data, void *image, int has_alpha)
       gl_direct_img_obj = image;
 }
 
-static void
-eng_gl_context_dirty(void *data)
-{
-   //eng_window_use(NULL);
-   int ret;
-
-   Render_Engine *re = (Render_Engine *)data;
-
-   if (gl_fastpath)
-     {
-#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
-        ret = glsym_eglMakeCurrent(re->win->egl_disp, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
-#else
-        ret = glsym_glXMakeCurrent(re->info->info.display, None, NULL);
-#endif
-
-        if (!ret)
-          {
-             ERR("xxxMakeCurrent() failed!");
-             return 0;
-          }
-     }
-
-}
-
 static int
 eng_image_load_error_get(void *data __UNUSED__, void *image)
 {
@@ -4362,7 +4337,6 @@ module_open(Evas_Module *em)
 
    ORD(image_max_size_get);
 
-   ORD(gl_context_dirty);
    /* now advertise out own api */
    em->functions = (void *)(&func);
    return 1;
index f659781..5540b3e 100644 (file)
@@ -1787,8 +1787,7 @@ static Evas_Func func =
      eng_image_animated_loop_count_get,
      eng_image_animated_frame_duration_get,
      eng_image_animated_frame_set,
-     NULL,
-     NULL // Only used in GL engines <- gl_context_dirty
+     NULL
    /* FUTURE software generic calls go here */
 };