Carsten Haitzler
d4a1044811
evas - unbreak build from cedric merge...
...
how did this NOT break for you - there is no efl_vg_image.eo so why
have a c++ hh for it?
2015-04-04 09:42:05 +09:00
Cedric BAIL
6a909d7a4f
Merge branch 'devs/cedric/evas_vg'
...
This commit add Evas_Object_VG, a new Evas_Object that provide a vector graphics
scenegraph following SVG specification. It will be considered a bug if some behavior
did not follow the SVG standard. Evas_Object_VG provide 3 kind of object for now:
shape, linear and radial gradient.
Vector object are very different in nature from what Evas did manipulate until now,
especially SVG defined one. They don't allow the easy detection of opaque area, thus
no cutout possible during the rendering and they usually require a large number of
them to draw something nice on scree. The cutout optimization in Evas is directly
impacted by the number of object, so splitting the two scenegraph did make sense.
Also SVG use matrix transformation everywhere, while Evas is using an UV mapping.
This make it a clear choice to have two scenegraph.
A part from the author you will see with git, there is two big thanks that needs to
be said here. First special thanks goes to Jorge Luis "turran" Zapata who is
developping is own vector stack: http://enesim.org/ since a long time now and did
share is technical advice and also influenced strongly the design. We did evaluate
the possibility to include enesim in efl, but that wasn't really possible sadly.
Another thanks goes to Jose O Gonzalez who did support and answer a lot of my
question and helped me a lot to.
2015-04-03 17:15:52 +02:00
Cedric BAIL
6a52271a86
ector: make sure that all of Ector is a beta API.
2015-04-03 16:57:55 +02:00
Cedric BAIL
899b70d3dc
evas: mark Evas VG API as beta API to.
2015-04-03 16:57:35 +02:00
Subhransu Mohanty
85312d56c6
ector: update cairo enum definitions and fix gradient spread issue.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:38:19 +02:00
Subhransu Mohanty
c8764e9279
ector: fix memory leak in Ector.Renderer.Generic.Base class
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:38:18 +02:00
Subhransu Mohanty
f4d325ee78
evas: fix memory leak in Efl.Vg.Base class.
2015-04-03 16:38:17 +02:00
Subhransu Mohanty
8d584dff34
efl: fix memory leak in efl_gfx_shape_interpolate().
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:38:15 +02:00
Subhransu Mohanty
5c31036249
evas/canvas : bail out in case of empty or null dash.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:38:14 +02:00
Subhransu Mohanty
4ad8b3ab52
evas: update batman example with shape property interpolation
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:38:13 +02:00
Subhransu Mohanty
2d74a4efb2
efl: fix svg path parsing to handle Z also.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:38:11 +02:00
Subhransu Mohanty
470d64c85e
efl: update efl_gfx_shape interpolation to use fill color.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:38:10 +02:00
Cedric BAIL
c44aa8f05d
efl: all those function should have been static already.
2015-04-03 16:38:08 +02:00
Cedric BAIL
41a75f0b07
efl: follow Efl.VG naming by using bounds_get as an API name.
2015-04-03 16:38:08 +02:00
Cedric BAIL
990c088f6b
evas: align naming with ector, use bounds.
2015-04-03 16:38:07 +02:00
Cedric BAIL
65fb92831b
ector: there is no need for bounds get to return a Eina_Bool.
2015-04-03 16:38:06 +02:00
Cedric BAIL
600e69d226
evas: implements efl_vg_bound_get in all Efl.VG object.
2015-04-03 16:38:04 +02:00
Cedric BAIL
c1836b97ed
evas: remove Efl.VG.Image for now as it was not implemented.
2015-04-03 16:38:00 +02:00
Cedric BAIL
2613d17844
evas: remove unused function, no need for untested code.
2015-04-03 16:37:59 +02:00
Cedric BAIL
0eeb19d688
evas: implement stack below and above get for Efl.VG object.
2015-04-03 16:37:58 +02:00
Cedric BAIL
1821aef0c6
evas: add forgotten static in some Efl_VG object.
2015-04-03 16:37:57 +02:00
Cedric BAIL
9e3cfef8d7
evas: add missing boung_get and above/below get.
2015-04-03 16:37:56 +02:00
Cedric BAIL
510a3e42e8
ector: implements bounds_get for gradients in Cairo backend.
2015-04-03 16:37:55 +02:00
Cedric BAIL
2d9bccbfdc
ector: implements bounds_get for Ector_Renderer_Cairo_Shape.
2015-04-03 16:34:30 +02:00
Cedric BAIL
7bca6c00f4
ector: fix the return type of ector_renderer_bounds_get.
2015-04-03 16:34:29 +02:00
Cedric BAIL
30e2b8398e
efl: add path bounding box computation.
...
This code does compute the largest possible bounding box not a minimal one.
2015-04-03 16:34:28 +02:00
Cedric BAIL
8288e0a880
evas: remove SVG loader code.
2015-04-03 16:34:27 +02:00
Cedric BAIL
013b18ea6a
evas: removing the ability to load file in Evas_Object_VG for now.
...
Without events and animation it is not really useful and that can only be
done with a library on top of Ecore.
2015-04-03 16:34:26 +02:00
Cedric BAIL
5310a3ea9c
ector: remove some warning from the Cairo backend.
2015-04-03 16:34:25 +02:00
Cedric BAIL
39f7ce192c
ector: implement surface size property.
2015-04-03 16:34:24 +02:00
Cedric BAIL
0d95e53932
ector: remove useless function for now.
2015-04-03 16:34:23 +02:00
Cedric BAIL
b18b1e89ff
evas: fix Windows build.
2015-04-03 16:34:22 +02:00
Subhransu Mohanty
7d0944bda5
evas: handle mul_col for ector drawing in gl backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:21 +02:00
Subhransu Mohanty
6c64f2db74
ector: fix transform issue in cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:19 +02:00
Subhransu Mohanty
72967efd9d
evas: update batman example with transformation and opengl.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:17 +02:00
Subhransu Mohanty
b20872bf68
ector: add cairo_save() and cairo_restore() to fix the transformation issue.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:16 +02:00
Subhransu Mohanty
1c093f3660
evas: fix EVAS_RENDERER_DEBUG_TIMING implementation for async rendering
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:15 +02:00
Subhransu Mohanty
03c5e052e8
efl: simplify append_circle() api implementation.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:14 +02:00
Cedric BAIL
21ee9897bd
evas: don't track generated content.
2015-04-03 16:34:12 +02:00
Subhransu Mohanty
097f46a047
evas: flush cpu pipeline before ector drawing.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:11 +02:00
Subhransu Mohanty
1f62465916
ector: add mul_col feature in Cairo backend and fixed color handling issue.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:10 +02:00
Cedric BAIL
c9aaa12c07
evas: force cpu end opt when switching to Cairo rendering.
2015-04-03 16:34:09 +02:00
Subhransu Mohanty
a500249b69
ector: add clipping support for Cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:07 +02:00
Subhransu Mohanty
26d8641381
ector: gradient now uses spread while filling a shape for Cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:06 +02:00
Subhransu Mohanty
e22752d1eb
ector: use line width, join and cap style while stoking the path for Cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:05 +02:00
Subhransu Mohanty
f1e48f8de8
ector: don't draw the gradient if its used as fill object in Cairo backend.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:03 +02:00
Subhransu Sekhar Mohanty
f73352adec
evas : add documentation to legacy vector api's.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:02 +02:00
Cedric BAIL
f8938fe5ce
evas: use legacy API for VG example.
2015-04-03 16:34:01 +02:00
Subhransu Sekhar Mohanty
e80a759139
evas: add legacy api for creating vg_shape and vg_container object.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:34:00 +02:00
Subhransu Sekhar Mohanty
b1e663b368
efl: fix efl_gfx_append_rect to clamp radius to always fit inside of the rectangle.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-03 16:33:59 +02:00