path: root/src/lib/ector/software/ector_software_buffer.eo
diff options
authorJean-Philippe Andre <>2015-11-18 19:29:23 +0900
committerJean-Philippe Andre <>2015-12-03 18:42:50 +0900
commit0cf5719e526b17bb6ad03f05643a760edf389e98 (patch)
treeabe50314b8b47867fe21c69ca754486030d08d15 /src/lib/ector/software/ector_software_buffer.eo
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_buffer.eo')
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/ector/software/ector_software_buffer.eo b/src/lib/ector/software/ector_software_buffer.eo
new file mode 100644
index 0000000000..a2e365a72d
--- /dev/null
+++ b/src/lib/ector/software/ector_software_buffer.eo
@@ -0,0 +1,19 @@
1class Ector.Software.Buffer (Ector.Generic.Buffer)
3 [[A buffer in Ector Software is a readable & optionally writable image]]
4 legacy_prefix: null;
5 methods {
6 pixels_clear @protected {
7 [[Clear internal pixel buffer]]
8 }
9 }
10 implements {
11 Eo.Base.destructor;
12 Ector.Generic.Buffer.flags.get;
13 Ector.Generic.Buffer.pixels_set;
14 Ector.Generic.Buffer.span_get;
15 Ector.Generic.Buffer.span_free;
17 Ector.Generic.Buffer.unmap;
18 }