summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_surface.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-03-09 16:21:08 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-03-15 11:11:59 +0900
commit0c95b694742c712ec4c66e566f216f1b6c1b7079 (patch)
tree4826c248cf1f4490c1d5f78bfb9741838efd3510 /src/lib/evas/canvas/efl_canvas_surface.c
parent20b4d9dd6adb88f9dd0cd51fa849f0c360432279 (diff)
Evas.Image: Move native surfaces to Efl.Canvas.Surface
X11, TBM and Wayland support are implemented for now.
Diffstat (limited to 'src/lib/evas/canvas/efl_canvas_surface.c')
-rw-r--r--src/lib/evas/canvas/efl_canvas_surface.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_surface.c b/src/lib/evas/canvas/efl_canvas_surface.c
new file mode 100644
index 0000000000..7f52945565
--- /dev/null
+++ b/src/lib/evas/canvas/efl_canvas_surface.c
@@ -0,0 +1,19 @@
1#include "efl_canvas_surface.h"
2
3#define MY_CLASS EFL_CANVAS_SURFACE_MIXIN
4
5EOLIAN static Eo *
6_efl_canvas_surface_eo_base_constructor(Eo *eo, Efl_Canvas_Surface_Data *pd)
7{
8 eo = eo_constructor(eo_super(eo, MY_CLASS));
9 pd->surf.version = EVAS_NATIVE_SURFACE_VERSION;
10 return eo;
11}
12
13EOLIAN static void *
14_efl_canvas_surface_native_buffer_get(Eo *obj EINA_UNUSED, Efl_Canvas_Surface_Data *pd)
15{
16 return pd->buffer;
17}
18
19#include "efl_canvas_surface.eo.c"