ecore_wl2: Move surface size update into generic code
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 26 Jan 2018 17:18:06 +0000 (11:18 -0600)
committerJiyoun Park <jy0703.park@samsung.com>
Tue, 3 Apr 2018 13:08:03 +0000 (22:08 +0900)
This didn't have to be in backend code in the first place.

src/lib/ecore_wl2/ecore_wl2_surface.c

index c36c6f6..3d52041 100644 (file)
@@ -44,8 +44,6 @@ _evas_dmabuf_surface_reconfigure(Ecore_Wl2_Surface *s, int w, int h, uint32_t fl
         ecore_wl2_buffer_destroy(b);
         s->buffers = eina_list_remove_list(s->buffers, l);
      }
-   s->w = w;
-   s->h = h;
 }
 
 static void *
@@ -183,6 +181,8 @@ ecore_wl2_surface_reconfigure(Ecore_Wl2_Surface *surface, int w, int h, uint32_t
    EINA_SAFETY_ON_NULL_RETURN(surface);
 
    surface->funcs->reconfigure(surface, w, h, flags);
+   surface->w = w;
+   surface->h = h;
 }
 
 EAPI void *