elm cache: elm_all_flush() -> elm_cache_all_flush()

Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68051
This commit is contained in:
Daniel Juyung Seo 2012-02-17 05:12:56 +00:00 committed by Daniel Juyung Seo
parent 61af3881a2
commit 350c6c3235
5 changed files with 28 additions and 6 deletions

View File

@ -329,7 +329,7 @@ my_gl_last(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
static Eina_Bool
my_gl_flush_delay(void *data __UNUSED__)
{
elm_all_flush();
elm_cache_all_flush();
return ECORE_CALLBACK_CANCEL;
}

View File

@ -23,8 +23,7 @@
*
* @ingroup Caches
*/
// XXX: rename: elm_cache_all_flush()
EAPI void elm_all_flush(void);
EAPI void elm_cache_all_flush(void);
/**
* Get the configured cache flush interval time

View File

@ -742,7 +742,7 @@ _config_sub_apply(void)
static Eina_Bool
_elm_cache_flush_cb(void *data __UNUSED__)
{
elm_all_flush();
elm_cache_all_flush();
return ECORE_CALLBACK_RENEW;
}
@ -755,7 +755,7 @@ _elm_recache(void)
Eina_List *l;
Evas_Object *win;
elm_all_flush();
elm_cache_all_flush();
EINA_LIST_FOREACH(_elm_win_list, l, win)
{

View File

@ -4513,6 +4513,23 @@ EINA_DEPRECATED EAPI void elm_label_text_align_set(Evas_O
*/
EINA_DEPRECATED EAPI void elm_label_background_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
/**
* @brief Flush all caches.
*
* Frees all data that was in cache and is not currently being used to reduce
* memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
* to calling all of the following functions:
* @li edje_file_cache_flush()
* @li edje_collection_cache_flush()
* @li eet_clearcache()
* @li evas_image_cache_flush()
* @li evas_font_cache_flush()
* @li evas_render_dump()
* @note Evas caches are flushed for every canvas associated with a window.
* @deprecated Use elm_cache_all_flush() instead.
*/
EINA_DEPRECATED EAPI void elm_all_flush(void);
/**
* @}
*/

View File

@ -1300,7 +1300,7 @@ elm_coords_finger_size_adjust(int times_w,
}
EAPI void
elm_all_flush(void)
elm_cache_all_flush(void)
{
const Eina_List *l;
Evas_Object *obj;
@ -1317,6 +1317,12 @@ elm_all_flush(void)
}
}
EINA_DEPRECATED EAPI void
elm_all_flush(void)
{
elm_cache_all_flush();
}
EAPI int
elm_cache_flush_interval_get(void)
{