From: Boram Park Date: Fri, 9 Feb 2018 07:14:46 +0000 (+0900) Subject: add tbm_bufmgr_debug_get_ref_count() X-Git-Tag: accepted/tizen/unified/20180221.061127~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=731c0ff58dd4a9e7c68112dfebe37b81c0bf707d;p=platform%2Fcore%2Fuifw%2Flibtbm.git add tbm_bufmgr_debug_get_ref_count() Change-Id: I7b1be4831cdf5a68417d69b6c97f7d13aff6d985 --- diff --git a/src/tbm_bufmgr.c b/src/tbm_bufmgr.c index f42c004..c48bc30 100644 --- a/src/tbm_bufmgr.c +++ b/src/tbm_bufmgr.c @@ -1669,6 +1669,12 @@ tbm_bufmgr_debug_dump_set_scale(double scale) } int +tbm_bufmgr_debug_get_ref_count(void) +{ + return (gBufMgr) ? gBufMgr->ref_count : 0; +} + +int tbm_bufmgr_debug_queue_dump(char *path, int count, int onoff) { pthread_mutex_lock(&gLock); diff --git a/src/tbm_bufmgr.h b/src/tbm_bufmgr.h index e386bea..a7d276a 100644 --- a/src/tbm_bufmgr.h +++ b/src/tbm_bufmgr.h @@ -1081,6 +1081,12 @@ int tbm_bufmgr_debug_queue_dump(char *path, int count, int onoff); */ void tbm_bufmgr_debug_dump_set_scale(double scale); +/** + * @brief Get ref_count of a global tbm_bufmgr + * @since_tizen 5.0 + */ +int tbm_bufmgr_debug_get_ref_count(void); + int tbm_bufmgr_bind_native_display(tbm_bufmgr bufmgr, void *NativeDisplay); #ifdef __cplusplus