aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorperepelits.m <perepelits.m@samsung.com>2016-02-05 08:19:40 +0100
committerCedric BAIL <cedric@osg.samsung.com>2016-02-05 08:19:42 +0100
commit9589bb07625bbe0ca8adb8bffc12512f3ea8bffc (patch)
treeb0eeb741ef4c160c714a553ee1217111a8108f4c
parentecore_con: changing Ecore.Con.Server to Efl.Network.Server. (diff)
downloadefl-9589bb07625bbe0ca8adb8bffc12512f3ea8bffc.tar.gz
edje: add new part types to edje_cache
Summary: Add new part types (Mesh_Node, Camera, Light) to edje_cache Reviewers: cedric, raster, Hermet Subscribers: jpeg, artem.popov Differential Revision: https://phab.enlightenment.org/D3533 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/edje/edje_cache.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/edje/edje_cache.c b/src/lib/edje/edje_cache.c
index e6e99b43c7..4c232b9c28 100644
--- a/src/lib/edje/edje_cache.c
+++ b/src/lib/edje/edje_cache.c
@@ -34,6 +34,9 @@ edje_cache_emp_alloc(Edje_Part_Collection_Directory_Entry *ce)
INIT_EMP_BOTH(EXTERNAL, Edje_Part_Description_External, ce);
INIT_EMP_BOTH(SPACER, Edje_Part_Description_Common, ce);
INIT_EMP_BOTH(SNAPSHOT, Edje_Part_Description_Snapshot, ce);
+ INIT_EMP_BOTH(MESH_NODE, Edje_Part_Description_Mesh_Node, ce);
+ INIT_EMP_BOTH(LIGHT, Edje_Part_Description_Light, ce);
+ INIT_EMP_BOTH(CAMERA, Edje_Part_Description_Camera, ce);
INIT_EMP(part, Edje_Part, ce);
}
@@ -53,6 +56,9 @@ edje_cache_emp_free(Edje_Part_Collection_Directory_Entry *ce)
eina_mempool_del(ce->mp.EXTERNAL);
eina_mempool_del(ce->mp.SPACER);
eina_mempool_del(ce->mp.SNAPSHOT);
+ eina_mempool_del(ce->mp.MESH_NODE);
+ eina_mempool_del(ce->mp.LIGHT);
+ eina_mempool_del(ce->mp.CAMERA);
eina_mempool_del(ce->mp.part);
memset(&ce->mp, 0, sizeof (ce->mp));
@@ -68,6 +74,9 @@ edje_cache_emp_free(Edje_Part_Collection_Directory_Entry *ce)
eina_mempool_del(ce->mp_rtl.EXTERNAL);
eina_mempool_del(ce->mp_rtl.SPACER);
eina_mempool_del(ce->mp_rtl.SNAPSHOT);
+ eina_mempool_del(ce->mp_rtl.MESH_NODE);
+ eina_mempool_del(ce->mp_rtl.LIGHT);
+ eina_mempool_del(ce->mp_rtl.CAMERA);
memset(&ce->mp_rtl, 0, sizeof (ce->mp_rtl));
ce->ref = NULL;
}