evas: Remove context from some engine function

This is for canvas_alpha_get. context is never used.
This commit is contained in:
Jean-Philippe Andre 2016-12-16 10:40:55 +09:00
parent 260d838d22
commit 581505791a
16 changed files with 16 additions and 17 deletions

View File

@ -2959,7 +2959,7 @@ evas_render_updates_internal(Evas *eo_e,
}
/* phase 1.5. check if the video should be inlined or stay in their overlay */
alpha = ENFN->canvas_alpha_get(ENDT, ENCTX);
alpha = ENFN->canvas_alpha_get(ENDT);
EINA_LIST_FOREACH(e->video_objects, ll, eo_obj)
{

View File

@ -274,8 +274,7 @@ _evas_render2_stage_render_do(Evas_Public_Data *e, Eina_Bool do_async EINA_UNUSE
// XXX: actually render now (either in thread or in mainloop)
// XXX:
printf(" _evas_render2_stage_render_do %p\n", e);
alpha = e->engine.func->canvas_alpha_get(e->engine.data.output,
e->engine.data.context);
alpha = e->engine.func->canvas_alpha_get(e->engine.data.output);
while ((uinf.surface =
e->engine.func->output_redraws_next_update_get
(e->engine.data.output,

View File

@ -1363,7 +1363,7 @@ struct _Evas_Func
void *(*context_new) (void *data);
void *(*context_dup) (void *data, void *context);
Eina_Bool (*canvas_alpha_get) (void *data, void *context);
Eina_Bool (*canvas_alpha_get) (void *data);
void (*context_free) (void *data, void *context);
void (*context_clip_set) (void *data, void *context, int x, int y, int w, int h);
void (*context_clip_image_set) (void *data, void *context, void *surface, int x, int y, Evas_Public_Data *evas, Eina_Bool do_async);

View File

@ -165,7 +165,7 @@ eng_output_free(void *data)
}
static Eina_Bool
eng_canvas_alpha_get(void *data, void *context EINA_UNUSED)
eng_canvas_alpha_get(void *data)
{
Render_Engine *re;

View File

@ -864,7 +864,7 @@ eng_output_free(void *data)
}
static Eina_Bool
eng_canvas_alpha_get(void *data, void *info EINA_UNUSED)
eng_canvas_alpha_get(void *data)
{
Render_Engine *re;

View File

@ -185,7 +185,7 @@ eng_output_free(void *data)
}
static Eina_Bool
eng_canvas_alpha_get(void *data, void *context EINA_UNUSED)
eng_canvas_alpha_get(void *data)
{
Render_Engine *re;

View File

@ -246,7 +246,7 @@ eng_output_free(void *data)
}
static Eina_Bool
eng_canvas_alpha_get(void *data EINA_UNUSED, void *info EINA_UNUSED)
eng_canvas_alpha_get(void *data EINA_UNUSED)
{
return EINA_TRUE;
}

View File

@ -1029,7 +1029,7 @@ eng_output_free(void *data)
}
static Eina_Bool
eng_canvas_alpha_get(void *data, void *info EINA_UNUSED)
eng_canvas_alpha_get(void *data)
{
Render_Engine *re;

View File

@ -352,7 +352,7 @@ eng_output_dump(void *data)
}
static Eina_Bool
eng_canvas_alpha_get(void *data EINA_UNUSED, void *info EINA_UNUSED)
eng_canvas_alpha_get(void *data EINA_UNUSED)
{
return 0;
}

View File

@ -1907,7 +1907,7 @@ eng_preload_make_current(void *data, void *doit)
}
static Eina_Bool
eng_canvas_alpha_get(void *data, void *info EINA_UNUSED)
eng_canvas_alpha_get(void *data)
{
Render_Engine *re = (Render_Engine *)data;
return re->generic.software.ob->alpha;

View File

@ -415,7 +415,7 @@ eng_output_idle_flush(void *data)
}
static Eina_Bool
eng_canvas_alpha_get(void *data, void *context EINA_UNUSED)
eng_canvas_alpha_get(void *data)
{
Render_Engine *re;

View File

@ -112,7 +112,7 @@ eng_output_free(void *data)
}
static Eina_Bool
eng_canvas_alpha_get(void *data EINA_UNUSED, void *context EINA_UNUSED)
eng_canvas_alpha_get(void *data EINA_UNUSED)
{
#warning "We need to handle window with alpha channel."
return EINA_FALSE;

View File

@ -148,7 +148,7 @@ eng_output_free(void *data)
}
static Eina_Bool
eng_canvas_alpha_get(void *data EINA_UNUSED, void *context EINA_UNUSED)
eng_canvas_alpha_get(void *data EINA_UNUSED)
{
#warning "We need to handle window with alpha channel."
return EINA_FALSE;

View File

@ -3442,7 +3442,7 @@ eng_font_hinting_can_hint(void *data EINA_UNUSED, int hinting)
}
static Eina_Bool
eng_canvas_alpha_get(void *data EINA_UNUSED, void *info EINA_UNUSED)
eng_canvas_alpha_get(void *data EINA_UNUSED)
{
return EINA_TRUE;
}

View File

@ -445,7 +445,7 @@ eng_output_free(void *data)
}
static Eina_Bool
eng_canvas_alpha_get(void *data, void *context EINA_UNUSED)
eng_canvas_alpha_get(void *data)
{
Render_Engine *re;

View File

@ -749,7 +749,7 @@ ob_err:
}
static Eina_Bool
eng_canvas_alpha_get(void *data, void *info EINA_UNUSED)
eng_canvas_alpha_get(void *data)
{
Render_Engine *re;