e_comp_wl: removed redundant value related to evasgl 37/57837/1
authorMinJeong Kim <minjjj.kim@samsung.com>
Mon, 25 Jan 2016 06:52:57 +0000 (15:52 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Mon, 25 Jan 2016 06:53:31 +0000 (15:53 +0900)
Change-Id: Ic993b4ff2de0a1239265c4b3838b2c92069d167a

src/bin/e_comp_wl.c
src/bin/e_comp_wl.h

index 1e59675a442e391f0bb733a6e282111f24c29169..2dedb7b3e9850a12e5d25c144f6088e2704889a3 100644 (file)
@@ -4055,11 +4055,11 @@ _e_comp_wl_gl_init(void)
 
    evas_gl_config_free(cfg);
 
-   e_comp_wl->gl.evasgl = evasgl;
-   e_comp_wl->gl.api = glapi;
+   e_comp_wl->wl.gl = evasgl;
    e_comp_wl->wl.glapi = glapi;
-   e_comp_wl->gl.sfc = sfc;
-   e_comp_wl->gl.ctx = ctx;
+   e_comp_wl->wl.glsfc = sfc;
+   e_comp_wl->wl.glctx = ctx;
+   e_comp_wl->wl.glcfg = cfg;
 
    /* for native surface */
    e_comp->gl = 1;
@@ -4334,19 +4334,19 @@ _e_comp_wl_desklock_hide(void)
 static void
 _e_comp_wl_gl_shutdown(void)
 {
-   if (!e_comp_wl->gl.evasgl) return;
+   if (!e_comp_wl->wl.gl) return;
 
-   e_comp_wl->gl.api->evasglUnbindWaylandDisplay(e_comp_wl->gl.evasgl, e_comp_wl->wl.disp);
+   e_comp_wl->wl.glapi->evasglUnbindWaylandDisplay(e_comp_wl->wl.gl, e_comp_wl->wl.disp);
 
-   evas_gl_make_current(e_comp_wl->gl.evasgl, NULL, NULL);
-   evas_gl_context_destroy(e_comp_wl->gl.evasgl, e_comp_wl->gl.ctx);
-   evas_gl_surface_destroy(e_comp_wl->gl.evasgl, e_comp_wl->gl.sfc);
-   evas_gl_free(e_comp_wl->gl.evasgl);
+   evas_gl_make_current(e_comp_wl->wl.gl, NULL, NULL);
+   evas_gl_context_destroy(e_comp_wl->wl.gl, e_comp_wl->wl.glctx);
+   evas_gl_surface_destroy(e_comp_wl->wl.gl, e_comp_wl->wl.glsfc);
+   evas_gl_free(e_comp_wl->wl.gl);
 
-   e_comp_wl->gl.sfc = NULL;
-   e_comp_wl->gl.ctx = NULL;
-   e_comp_wl->gl.api = NULL;
-   e_comp_wl->gl.evasgl = NULL;
+   e_comp_wl->wl.glsfc = NULL;
+   e_comp_wl->wl.glctx = NULL;
+   e_comp_wl->wl.glapi = NULL;
+   e_comp_wl->wl.gl = NULL;
 }
 
 /* public functions */
@@ -4723,16 +4723,16 @@ e_comp_wl_buffer_get(struct wl_resource *resource, E_Client *ec)
           {
              buffer->type = E_COMP_WL_BUFFER_TYPE_NATIVE;
 
-             res = e_comp_wl->gl.api->evasglQueryWaylandBuffer(e_comp_wl->wl.gl,
-                                                           resource,
-                                                           EVAS_GL_WIDTH,
-                                                           &buffer->w);
+             res = e_comp_wl->wl.glapi->evasglQueryWaylandBuffer(e_comp_wl->wl.gl,
+                                                                 resource,
+                                                                 EVAS_GL_WIDTH,
+                                                                 &buffer->w);
              EINA_SAFETY_ON_FALSE_GOTO(res, err);
 
-             res = e_comp_wl->gl.api->evasglQueryWaylandBuffer(e_comp_wl->wl.gl,
-                                                           resource,
-                                                           EVAS_GL_HEIGHT,
-                                                           &buffer->h);
+             res = e_comp_wl->wl.glapi->evasglQueryWaylandBuffer(e_comp_wl->wl.gl,
+                                                                 resource,
+                                                                 EVAS_GL_HEIGHT,
+                                                                 &buffer->h);
              EINA_SAFETY_ON_FALSE_GOTO(res, err);
           }
         else
index 9d9c137bbe01146586301914f6ab527ab2fe11a5..2acfbb3d03ecf7e754495614233def543ae276ff 100644 (file)
@@ -312,14 +312,6 @@ struct _E_Comp_Wl_Data
         char *area;
      } xkb;
 
-   struct
-     {
-        Evas_GL *evasgl;
-        Evas_GL_API *api;
-        Evas_GL_Surface *sfc;
-        Evas_GL_Context *ctx;
-     } gl;
-
    struct
      {
         Eina_Bool underlay;