summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_software_surface.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-11-18 19:29:23 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-12-03 18:42:50 +0900
commit0cf5719e526b17bb6ad03f05643a760edf389e98 (patch)
treeabe50314b8b47867fe21c69ca754486030d08d15 /src/lib/ector/software/ector_software_surface.c
parentb41e66c1ef9928b506ed1f6e0ef9e033e25edf02 (diff)
Ector: Implement pixel buffer support
The objective of this patch is to propose a standardized format for pixel buffers to use within Ector and Evas. The basic EO API provided here is not meant to be the fastest path for all operations, simply the most convenient to generalize. Performance will be achieved by implementing (or porting) custom draw functions. This implements support for: - Generic pixel buffers - Generic buffer renderer to draw images with ector - Software engine pixel buffers, ie. malloc buffers - Software buffer renderer Cairo support has not been implemented yet. The only renderer is still extremely limited, as it does not support Fill modes, Scaling, etc... yet. Not a single line from this patch has been tested yet. It compiles. That's pretty damn good for a start! @feature
Diffstat (limited to 'src/lib/ector/software/ector_software_surface.c')
-rw-r--r--src/lib/ector/software/ector_software_surface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ector/software/ector_software_surface.c b/src/lib/ector/software/ector_software_surface.c
index 04229200f9..4767e4e654 100644
--- a/src/lib/ector/software/ector_software_surface.c
+++ b/src/lib/ector/software/ector_software_surface.c
@@ -27,6 +27,9 @@ _ector_software_surface_ector_generic_surface_renderer_factory_new(Eo *obj,
27 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN) 27 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN)
28 return eo_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, NULL, 28 return eo_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, NULL,
29 ector_renderer_surface_set(obj)); 29 ector_renderer_surface_set(obj));
30 else if (type == ECTOR_RENDERER_GENERIC_BUFFER_MIXIN)
31 return eo_add(ECTOR_RENDERER_SOFTWARE_BUFFER_CLASS, NULL,
32 ector_renderer_surface_set(obj));
30 ERR("Couldn't find class for type: %s\n", eo_class_name_get(type)); 33 ERR("Couldn't find class for type: %s\n", eo_class_name_get(type));
31 return NULL; 34 return NULL;
32} 35}