forked from enlightenment/efl
wayland_shm: Remove useless function
This serves no purpose anymore.
This commit is contained in:
parent
566c3f328a
commit
b5674b7885
|
@ -155,6 +155,4 @@ void _evas_outbuf_update_region_push(Outbuf *ob, RGBA_Image *update, int x, int
|
||||||
void _evas_surface_damage(struct wl_surface *s, int compositor_version, int w, int h, Eina_Rectangle *rects, unsigned int count);
|
void _evas_surface_damage(struct wl_surface *s, int compositor_version, int w, int h, Eina_Rectangle *rects, unsigned int count);
|
||||||
void _evas_outbuf_redraws_clear(Outbuf *ob);
|
void _evas_outbuf_redraws_clear(Outbuf *ob);
|
||||||
|
|
||||||
Eina_Bool _evas_surface_init(Surface *s, int w, int h, int num_buf);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -9,12 +9,6 @@
|
||||||
#define GREEN_MASK 0x00ff00
|
#define GREEN_MASK 0x00ff00
|
||||||
#define BLUE_MASK 0x0000ff
|
#define BLUE_MASK 0x0000ff
|
||||||
|
|
||||||
Eina_Bool
|
|
||||||
_evas_surface_init(Surface *s, int w, int h, int num_buf)
|
|
||||||
{
|
|
||||||
return _evas_dmabuf_surface_create(s, w, h, num_buf);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Surface *
|
static Surface *
|
||||||
_evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, Outbuf *ob)
|
_evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, Outbuf *ob)
|
||||||
{
|
{
|
||||||
|
@ -26,7 +20,7 @@ _evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, Outbuf *ob)
|
||||||
out->info = info;
|
out->info = info;
|
||||||
out->ob = ob;
|
out->ob = ob;
|
||||||
|
|
||||||
if (_evas_surface_init(out, w, h, ob->num_buff)) return out;
|
if (_evas_dmabuf_surface_create(out, w, h, ob->num_buff)) return out;
|
||||||
|
|
||||||
free(out);
|
free(out);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue