wayland_shm: Remove unused dx, dy params from resize functions
authorDerek Foreman <derekf@osg.samsung.com>
Mon, 11 Apr 2016 20:12:29 +0000 (15:12 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 19 Apr 2016 19:11:09 +0000 (15:11 -0400)
We don't appear to actually use these for anything except long term storage

src/modules/evas/engines/wayland_shm/evas_engine.c
src/modules/evas/engines/wayland_shm/evas_engine.h
src/modules/evas/engines/wayland_shm/evas_outbuf.c
src/modules/evas/engines/wayland_shm/evas_shm.c

index d21e35ac304523e1b4847b32158f823864bd4766..702566a6b19d96178c7b46d7239daa0f978d9733 100644 (file)
@@ -25,7 +25,7 @@ struct _Render_Engine
 {
    Render_Engine_Software_Generic generic;
 
-   void (*outbuf_reconfigure)(Outbuf *ob, int x, int y, int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, Eina_Bool resize);
+   void (*outbuf_reconfigure)(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, Eina_Bool resize);
 };
 
 /* LOCAL FUNCTIONS */
@@ -227,7 +227,6 @@ eng_output_resize(void *data, int w, int h)
 {
    Render_Engine *re;
    Evas_Engine_Info_Wayland_Shm *einfo;
-   int dx = 0, dy = 0;
    Eina_Bool resize = EINA_FALSE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -235,25 +234,9 @@ eng_output_resize(void *data, int w, int h)
    if (!(re = (Render_Engine *)data)) return;
    if (!(einfo = re->generic.ob->info)) return;
 
-   if (einfo->info.edges & 4) // resize from left
-     {
-        if ((einfo->info.rotation == 90) || (einfo->info.rotation == 270))
-          dx = re->generic.ob->h - h;
-        else
-          dx = re->generic.ob->w - w;
-     }
-
-   if (einfo->info.edges & 1) // resize from top
-     {
-        if ((einfo->info.rotation == 90) || (einfo->info.rotation == 270))
-          dy = re->generic.ob->w - w;
-        else
-          dy = re->generic.ob->h - h;
-     }
-
    if (einfo->info.edges) resize = EINA_TRUE;
 
-   re->outbuf_reconfigure(re->generic.ob, dx, dy, w, h, 
+   re->outbuf_reconfigure(re->generic.ob, w, h,
                           einfo->info.rotation, einfo->info.depth, 
                           einfo->info.destination_alpha, resize);
 
index 3e2e59aa355710b1a9d06ccff3d0d4770c977b81..7a2a1865c8b264c6285ca244eeb5b079ac9d055a 100644 (file)
@@ -118,7 +118,7 @@ struct _Outbuf
 
 Surface *_evas_shm_surface_create(struct wl_display *disp, struct wl_shm *shm, struct wl_surface *surface, int w, int h, int num_buff, Eina_Bool alpha, int compositor_version);
 void _evas_shm_surface_destroy(Surface *surface);
-void _evas_shm_surface_reconfigure(Surface *surface, int dx, int dy, int w, int h, int num_buff, uint32_t flags);
+void _evas_shm_surface_reconfigure(Surface *surface, int w, int h, int num_buff, uint32_t flags);
 void *_evas_shm_surface_data_get(Surface *surface, int *w, int *h);
 int _evas_shm_surface_assign(Surface *surface);
 void _evas_shm_surface_post(Surface *surface, Eina_Rectangle *rects, unsigned int count);
@@ -130,7 +130,7 @@ void _evas_outbuf_idle_flush(Outbuf *ob);
 
 Render_Engine_Swap_Mode _evas_outbuf_swap_mode_get(Outbuf *ob);
 int _evas_outbuf_rotation_get(Outbuf *ob);
-void _evas_outbuf_reconfigure(Outbuf *ob, int x, int y, int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, Eina_Bool resize);
+void _evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, Eina_Bool resize);
 void *_evas_outbuf_update_region_new(Outbuf *ob, int x, int y, int w, int h, int *cx, int *cy, int *cw, int *ch);
 void _evas_outbuf_update_region_push(Outbuf *ob, RGBA_Image *update, int x, int y, int w, int h);
 void _evas_outbuf_update_region_free(Outbuf *ob, RGBA_Image *update);
index f78fc8fcff7193f7c45c9b9e6c6d5a40b3923b4c..affcf334e542ce478102f995d5fccacfaebec423 100644 (file)
@@ -287,7 +287,7 @@ _evas_outbuf_rotation_get(Outbuf *ob)
 }
 
 void 
-_evas_outbuf_reconfigure(Outbuf *ob, int x, int y, int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, Eina_Bool resize)
+_evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, Eina_Bool resize)
 {
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
@@ -308,12 +308,12 @@ _evas_outbuf_reconfigure(Outbuf *ob, int x, int y, int w, int h, int rot, Outbuf
 
    if ((ob->rotation == 0) || (ob->rotation == 180))
      {
-        _evas_shm_surface_reconfigure(ob->surface, x, y, w, h,
+        _evas_shm_surface_reconfigure(ob->surface, w, h,
                                       ob->num_buff, resize);
      }
    else if ((ob->rotation == 90) || (ob->rotation == 270))
      {
-        _evas_shm_surface_reconfigure(ob->surface, x, y, h, w,
+        _evas_shm_surface_reconfigure(ob->surface, h, w,
                                       ob->num_buff, resize);
      }
 
index 3ea3da971f517b744a08e74b4d964036d2419a41..59aa47e6473cb4b547d8c67bf02d42598bdd7413 100644 (file)
@@ -65,7 +65,6 @@ struct _Shm_Surface
    struct wl_shm *shm;
    struct wl_surface *surface;
    int w, h;
-   int dx, dy;
    int num_buff;
    int compositor_version;
 
@@ -409,8 +408,6 @@ _evas_shm_surface_create(struct wl_display *disp, struct wl_shm *shm, struct wl_
    s->type = SURFACE_SHM;
    surf = s->surf.shm;
 
-   surf->dx = 0;
-   surf->dy = 0;
    surf->w = w;
    surf->h = h;
    surf->disp = disp;
@@ -454,7 +451,7 @@ _evas_shm_surface_destroy(Surface *surface)
 }
 
 void 
-_evas_shm_surface_reconfigure(Surface *s, int dx, int dy, int w, int h, int num_buff, uint32_t flags)
+_evas_shm_surface_reconfigure(Surface *s, int w, int h, int num_buff, uint32_t flags)
 {
    Shm_Surface *surface;
    int i = 0, resize = 0;
@@ -479,8 +476,6 @@ _evas_shm_surface_reconfigure(Surface *s, int dx, int dy, int w, int h, int num_
 
    surface->w = w;
    surface->h = h;
-   surface->dx = dx;
-   surface->dy = dy;
    surface->num_buff = num_buff;
 
    for (i = 0; i < surface->num_buff; i++)