cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9589bb07625bbe0ca8adb8bffc12512f3ea8bffc

commit 9589bb07625bbe0ca8adb8bffc12512f3ea8bffc
Author: perepelits.m <perepelit...@samsung.com>
Date:   Fri Feb 5 08:19:40 2016 +0100

    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 <ced...@osg.samsung.com>
---
 src/lib/edje/edje_cache.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/lib/edje/edje_cache.c b/src/lib/edje/edje_cache.c
index e6e99b4..4c232b9 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;
 }

-- 


Reply via email to