wayland_shm: Remove outbuf_reconfigure function pointer

We only ever call it from one place, and we only ever initialize it
to one value, so there's no need for a function pointer.
This commit is contained in:
Derek Foreman 2016-04-11 15:17:13 -05:00 committed by Mike Blumenkrantz
parent 4c61ec5e05
commit 63a255750b
1 changed files with 3 additions and 7 deletions

View File

@ -24,8 +24,6 @@ typedef struct _Render_Engine Render_Engine;
struct _Render_Engine
{
Render_Engine_Software_Generic generic;
void (*outbuf_reconfigure)(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, Eina_Bool resize);
};
/* LOCAL FUNCTIONS */
@ -60,8 +58,6 @@ _render_engine_swapbuf_setup(int w, int h, unsigned int rotation, unsigned int d
w, h))
goto err;
re->outbuf_reconfigure = _evas_outbuf_reconfigure;
s = getenv("EVAS_WAYLAND_PARTIAL_MERGE");
if (s)
{
@ -236,9 +232,9 @@ eng_output_resize(void *data, int w, int h)
if (einfo->info.edges) resize = EINA_TRUE;
re->outbuf_reconfigure(re->generic.ob, w, h,
einfo->info.rotation, einfo->info.depth,
einfo->info.destination_alpha, resize);
_evas_outbuf_reconfigure(re->generic.ob, w, h,
einfo->info.rotation, einfo->info.depth,
einfo->info.destination_alpha, resize);
evas_common_tilebuf_free(re->generic.tb);
if ((re->generic.tb = evas_common_tilebuf_new(w, h)))