remove the function which tbm does not support. 19/26119/1 submit/tizen_common/20140822.072318
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 18 Aug 2014 01:50:57 +0000 (10:50 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 18 Aug 2014 01:50:57 +0000 (10:50 +0900)
Change-Id: I4af4f0c0659d87b1b49e412b8635441ae56a4aaa

src/tbm_bufmgr.c
src/tbm_bufmgr.h

index debfd57..5f91a4e 100755 (executable)
@@ -1399,38 +1399,3 @@ tbm_bo_delete_user_data (tbm_bo bo, unsigned long key)
     return 1;
 }
 
-int
-tbm_bo_cache_flush(tbm_bo bo, int flags)
-{
-    tbm_bufmgr bufmgr = bo->bufmgr;
-
-    bufmgr->backend->bo_cache_flush (bo, flags);
-
-    RETURN_VAL_CHECK_FLAG (TBM_CACHE_CTRL_BACKEND_VALID(bufmgr->backend->flags), 1);
-
-    unsigned short cntFlush = 0;
-    unsigned int is_locked;
-
-    /* get cache state of a bo */
-    bo->cache_state.val = _tgl_get_data (bufmgr->lock_fd, bo->tgl_key, &is_locked);
-
-    if (!bo->cache_state.data.isCacheable)
-        return 1;
-
-    /* get global cache flush count */
-    cntFlush = (unsigned short)_tgl_get_data (bufmgr->lock_fd, GLOBAL_KEY, NULL);
-
-    bo->cache_state.data.isDirtied = DEVICE_NONE;
-    bo->cache_state.data.isCached = 0;
-
-    /* set global cache flush count */
-    _tgl_set_data (bufmgr->lock_fd, GLOBAL_KEY, (unsigned int)(++cntFlush));
-
-    DBG ("[libtbm:%d] \tcache(%d,%d,%d)....  cntFlush(%d)\n", getpid(),
-             bo->cache_state.data.isCacheable,
-             bo->cache_state.data.isCached,
-             bo->cache_state.data.isDirtied,
-             cntFlush);
-
-    return 1;
-}
index 6445d12..83bdc54 100755 (executable)
@@ -847,9 +847,6 @@ int tbm_bo_set_user_data    (tbm_bo bo, unsigned long key, void* data);
  */
 int tbm_bo_get_user_data    (tbm_bo bo, unsigned long key, void** data);
 
-int tbm_bo_cache_flush  (tbm_bo bo, int flags);
-
-
 #ifdef __cplusplus
 }
 #endif