aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_main.c
diff options
context:
space:
mode:
authorSubhransu Mohanty <sub.mohanty@samsung.com>2015-08-25 15:32:35 +0900
committerCedric BAIL <cedric@osg.samsung.com>2015-09-21 22:50:34 +0200
commit291c3e32af106531e4203ea4c2c69af786e0a34d (patch)
tree306de50e666374386ce3e7acacd2a8a7d5636e39 /src/lib/evas/canvas/evas_main.c
parentector: cleanup default backend drawer. (diff)
downloadefl-291c3e32af106531e4203ea4c2c69af786e0a34d.tar.gz
evas: create ector surface per engine instance.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_main.c')
-rw-r--r--src/lib/evas/canvas/evas_main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 5e7e6ee242..1fa4d32fa5 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -278,6 +278,8 @@ _evas_canvas_eo_base_destructor(Eo *eo_e, Evas_Public_Data *e)
if (e->engine.func)
{
+ e->engine.func->ector_destroy(e->engine.data.output,
+ e->engine.ector);
e->engine.func->context_free(e->engine.data.output,
e->engine.data.context);
e->engine.func->output_free(e->engine.data.output);
@@ -693,4 +695,12 @@ _evas_canvas_evas_common_interface_evas_get(Eo *eo_e, Evas_Public_Data *e EINA_U
return (Evas *)eo_e;
}
+Ector_Surface *
+evas_ector_get(Evas_Public_Data *e)
+{
+ if (!e->engine.ector)
+ e->engine.ector = e->engine.func->ector_create(e->engine.data.output);
+ return e->engine.ector;
+}
+
#include "canvas/evas_canvas.eo.c"