ector: prepare doesn't need surface, as it should always be the parent.
authorCedric BAIL <cedric@osg.samsung.com>
Fri, 3 Apr 2015 14:22:14 +0000 (16:22 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 3 Apr 2015 14:22:14 +0000 (16:22 +0200)
src/lib/ector/cairo/ector_renderer_cairo_gradient_linear.c
src/lib/ector/cairo/ector_renderer_cairo_gradient_radial.c
src/lib/ector/cairo/ector_renderer_cairo_shape.c
src/lib/ector/ector_renderer_generic_base.eo

index bdf5c36..4b47bb0 100644 (file)
@@ -29,8 +29,7 @@ struct _Ector_Renderer_Cairo_Gradient_Linear_Data
 
 static Eina_Bool
 _ector_renderer_cairo_gradient_linear_ector_renderer_generic_base_prepare(Eo *obj,
-                                                                          Ector_Renderer_Cairo_Gradient_Linear_Data *pd,
-                                                                          Ector_Surface *s EINA_UNUSED)
+                                                                          Ector_Renderer_Cairo_Gradient_Linear_Data *pd)
 {
    Ector_Renderer_Generic_Gradient_Linear_Data *gld;
    Ector_Renderer_Generic_Gradient_Data *gd;
index d22f710..2659a46 100644 (file)
@@ -33,7 +33,7 @@ struct _Ector_Renderer_Cairo_Gradient_Radial_Data
 };
 
 static Eina_Bool
-_ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_prepare(Eo *obj, Ector_Renderer_Cairo_Gradient_Radial_Data *pd, Ector_Surface *s)
+_ector_renderer_cairo_gradient_radial_ector_renderer_generic_base_prepare(Eo *obj, Ector_Renderer_Cairo_Gradient_Radial_Data *pd)
 {
    Ector_Renderer_Generic_Gradient_Radial_Data *grd;
    Ector_Renderer_Generic_Gradient_Data *gd;
index 499a01b..d063114 100644 (file)
@@ -205,16 +205,16 @@ _ector_arc_to(Eo *obj, cairo_t* ctx,
 }
 
 static Eina_Bool
-_ector_renderer_cairo_shape_ector_renderer_generic_base_prepare(Eo *obj, Ector_Renderer_Cairo_Shape_Data *pd, Ector_Surface *s)
+_ector_renderer_cairo_shape_ector_renderer_generic_base_prepare(Eo *obj, Ector_Renderer_Cairo_Shape_Data *pd)
 {
    // FIXME: shouldn't that be part of the shape generic implementation ?
    if (pd->shape->fill)
-     eo_do(pd->shape->fill, ector_renderer_prepare(s));
+     eo_do(pd->shape->fill, ector_renderer_prepare());
    if (pd->shape->stroke.fill)
-     eo_do(pd->shape->stroke.fill, ector_renderer_prepare(s));
+     eo_do(pd->shape->stroke.fill, ector_renderer_prepare());
    if (pd->shape->stroke.marker)
-     eo_do(pd->shape->stroke.marker, ector_renderer_prepare(s));
-   eo_do_super(obj, ECTOR_RENDERER_CAIRO_SHAPE_CLASS, ector_renderer_prepare(s));
+     eo_do(pd->shape->stroke.marker, ector_renderer_prepare());
+   eo_do_super(obj, ECTOR_RENDERER_CAIRO_SHAPE_CLASS, ector_renderer_prepare());
 
    // shouldn't that be moved to the cairo base object
    if (!pd->parent)
index 6f6808d..af3bbee 100644 (file)
@@ -103,7 +103,6 @@ abstract Ector.Renderer.Generic.Base (Eo.Base)
       prepare {
          return: bool @warn_unused;
         params {
-           @in Ector_Surface *s;
         }
       }
       done {