genlist: add reusable_content_get item class function for support automatical content...
authorSangHyeon Lee <sh10233.lee@samsung.com>
Fri, 12 Feb 2016 19:14:13 +0000 (20:14 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 12 Feb 2016 19:36:16 +0000 (20:36 +0100)
commit460710953106aaf98303f16dd8dbb32e8663c747
tree54ef8522b5920862a6f5fa60e03545f7aac3fe3f
parent3ca0135de1553a48684e128b09f020da296806da
genlist: add reusable_content_get item class function for support automatical content reusing in genlist.

Summary:
   Add new Item Class function reusable_content_get for improve genlist
   performance.
   If user want to reuse specific part contents, return old content
   which was passed by parameter of rreusable_content_get function.
   genlist will automatically caching those contents when item unrealized,
   and reusing it on item realizing.

   reusable_content_get will be performed content_get with old object caching.
   But if user return NULL in reusable_content_get, content_get is called to
   get new object.

   This feature is refered in Task T2813

   @feature

Test Plan: add test in genlist 1 case.

Reviewers: raster, singh.amitesh, cedric

Reviewed By: cedric

Subscribers: smohanty, seoz, woohyun, Hermet, eagleeye

Differential Revision: https://phab.enlightenment.org/D3252

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
legacy/elementary/src/bin/test_genlist.c
legacy/elementary/src/lib/elm_gen.h
legacy/elementary/src/lib/elm_general.eot
legacy/elementary/src/lib/elm_genlist.c
legacy/elementary/src/lib/elm_genlist_common.h
legacy/elementary/src/lib/elm_widget_genlist.h