forked from enlightenment/efl
evas: Remove context from some engine function
This is for canvas_alpha_get. context is never used.
This commit is contained in:
parent
260d838d22
commit
581505791a
|
@ -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 */
|
/* 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)
|
EINA_LIST_FOREACH(e->video_objects, ll, eo_obj)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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: actually render now (either in thread or in mainloop)
|
||||||
// XXX:
|
// XXX:
|
||||||
printf(" _evas_render2_stage_render_do %p\n", e);
|
printf(" _evas_render2_stage_render_do %p\n", e);
|
||||||
alpha = e->engine.func->canvas_alpha_get(e->engine.data.output,
|
alpha = e->engine.func->canvas_alpha_get(e->engine.data.output);
|
||||||
e->engine.data.context);
|
|
||||||
while ((uinf.surface =
|
while ((uinf.surface =
|
||||||
e->engine.func->output_redraws_next_update_get
|
e->engine.func->output_redraws_next_update_get
|
||||||
(e->engine.data.output,
|
(e->engine.data.output,
|
||||||
|
|
|
@ -1363,7 +1363,7 @@ struct _Evas_Func
|
||||||
|
|
||||||
void *(*context_new) (void *data);
|
void *(*context_new) (void *data);
|
||||||
void *(*context_dup) (void *data, void *context);
|
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_free) (void *data, void *context);
|
||||||
void (*context_clip_set) (void *data, void *context, int x, int y, int w, int h);
|
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);
|
void (*context_clip_image_set) (void *data, void *context, void *surface, int x, int y, Evas_Public_Data *evas, Eina_Bool do_async);
|
||||||
|
|
|
@ -165,7 +165,7 @@ eng_output_free(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
eng_canvas_alpha_get(void *data, void *context EINA_UNUSED)
|
eng_canvas_alpha_get(void *data)
|
||||||
{
|
{
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
|
|
||||||
|
|
|
@ -864,7 +864,7 @@ eng_output_free(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
eng_canvas_alpha_get(void *data, void *info EINA_UNUSED)
|
eng_canvas_alpha_get(void *data)
|
||||||
{
|
{
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
|
|
||||||
|
|
|
@ -185,7 +185,7 @@ eng_output_free(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
eng_canvas_alpha_get(void *data, void *context EINA_UNUSED)
|
eng_canvas_alpha_get(void *data)
|
||||||
{
|
{
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
|
|
||||||
|
|
|
@ -246,7 +246,7 @@ eng_output_free(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
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;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1029,7 +1029,7 @@ eng_output_free(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
eng_canvas_alpha_get(void *data, void *info EINA_UNUSED)
|
eng_canvas_alpha_get(void *data)
|
||||||
{
|
{
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
|
|
||||||
|
|
|
@ -352,7 +352,7 @@ eng_output_dump(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1907,7 +1907,7 @@ eng_preload_make_current(void *data, void *doit)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
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;
|
Render_Engine *re = (Render_Engine *)data;
|
||||||
return re->generic.software.ob->alpha;
|
return re->generic.software.ob->alpha;
|
||||||
|
|
|
@ -415,7 +415,7 @@ eng_output_idle_flush(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
eng_canvas_alpha_get(void *data, void *context EINA_UNUSED)
|
eng_canvas_alpha_get(void *data)
|
||||||
{
|
{
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,7 @@ eng_output_free(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
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."
|
#warning "We need to handle window with alpha channel."
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
|
@ -148,7 +148,7 @@ eng_output_free(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
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."
|
#warning "We need to handle window with alpha channel."
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
|
@ -3442,7 +3442,7 @@ eng_font_hinting_can_hint(void *data EINA_UNUSED, int hinting)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
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;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -445,7 +445,7 @@ eng_output_free(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
eng_canvas_alpha_get(void *data, void *context EINA_UNUSED)
|
eng_canvas_alpha_get(void *data)
|
||||||
{
|
{
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
|
|
||||||
|
|
|
@ -749,7 +749,7 @@ ob_err:
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
eng_canvas_alpha_get(void *data, void *info EINA_UNUSED)
|
eng_canvas_alpha_get(void *data)
|
||||||
{
|
{
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue