evas ector: Replace renderer preparation responsibility.

Replace fill/stroke renderer preparation of shapes to canvas vg,
These renderer now is triggered by their own instances.
This commit is contained in:
Hermet Park 2018-11-28 13:38:23 +09:00
parent 700b302517
commit bf70b32f04
3 changed files with 2 additions and 12 deletions

View File

@ -631,14 +631,6 @@ _ector_renderer_software_shape_ector_renderer_prepare(Eo *obj,
{
Ector_Software_Shape_Task *task;
// FIXME: shouldn't this be part of the shape generic implementation?
if (pd->shape->fill)
ector_renderer_prepare(pd->shape->fill);
if (pd->shape->stroke.fill)
ector_renderer_prepare(pd->shape->stroke.fill);
if (pd->shape->stroke.marker)
ector_renderer_prepare(pd->shape->stroke.marker);
// FIXME: shouldn't this be moved to the software base object?
if (!pd->surface)
pd->surface = efl_data_xref(pd->base->surface, ECTOR_SOFTWARE_SURFACE_CLASS, obj);

View File

@ -88,8 +88,7 @@ _efl_canvas_vg_gradient_linear_render_pre(Eo *obj,
efl_gfx_gradient_linear_start_set(nd->renderer, pd->start.x, pd->start.y);
efl_gfx_gradient_linear_end_set(nd->renderer, pd->end.x, pd->end.y);
//Prepare renderer triggered by ector shape this gradient applied to.
//ector_renderer_prepare(nd->renderer);
ector_renderer_prepare(nd->renderer);
}
static Eo *

View File

@ -105,8 +105,7 @@ _efl_canvas_vg_gradient_radial_render_pre(Eo *obj,
efl_gfx_gradient_radial_focal_set(nd->renderer, pd->focal.x, pd->focal.y);
efl_gfx_gradient_radial_radius_set(nd->renderer, pd->radius);
//Prepare renderer triggered by ector shape this gradient applied to.
//ector_renderer_prepare(nd->renderer);
ector_renderer_prepare(nd->renderer);
}
static Eo *