From 399aa309e332aac33e6e0cd741646e1ffc429ebb Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Wed, 1 Feb 2017 18:29:11 +0900 Subject: [PATCH] don't check path condition if queue_dump off Change-Id: I425c8376c503285d89b6f113d2808b77648d0095 Signed-off-by: Junkyeong Kim --- src/tbm_bufmgr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tbm_bufmgr.c b/src/tbm_bufmgr.c index 65c2906..8dd0c30 100644 --- a/src/tbm_bufmgr.c +++ b/src/tbm_bufmgr.c @@ -1580,17 +1580,18 @@ tbm_bufmgr_debug_trace(tbm_bufmgr bufmgr, int onoff) int tbm_bufmgr_debug_queue_dump(char *path, int count, int onoff) { - TBM_RETURN_VAL_IF_FAIL(path != NULL, 0); - TBM_LOG_D("path=%s count=%d onoff=%d\n", path, count, onoff); - pthread_mutex_lock(&gLock); if (onoff == 0) { + TBM_LOG_D("count=%d onoff=%d\n", count, onoff); b_dump_queue = 0; tbm_surface_internal_dump_end(); } else { int w, h; + TBM_RETURN_VAL_IF_FAIL(path != NULL, 0); + TBM_LOG_D("path=%s count=%d onoff=%d\n", path, count, onoff); + if (_tbm_util_get_max_surface_size(&w, &h) == 0) { TBM_LOG_I("Fail to get tbm_surface size.\n"); pthread_mutex_unlock(&gLock); -- 2.7.4