tbm_last_error = err;
}
+/* LCOV_EXCL_START */
static void
_tbm_util_get_appname_brief(char *brief)
{
snprintf(str, sizeof(cmdline), "%s", cmdline);
}
+/* LCOV_EXCL_STOP */
tbm_user_data
*user_data_lookup(struct list_head *user_data_list, unsigned long key)
}
+/* LCOV_EXCL_START */
static int
_check_version(TBMModuleVersionInfo *data)
{
return ret;
}
+/* LCOV_EXCL_STOP */
tbm_bufmgr
tbm_bufmgr_init(int fd)
pthread_mutex_lock(&gLock);
+ /* LCOV_EXCL_START */
#ifdef HAVE_DLOG
env = getenv("TBM_DLOG");
if (env) {
bDebug = 0;
}
#endif
+ /* LCOV_EXCL_STOP */
/* initialize buffer manager */
if (gBufMgr) {
/* load bufmgr priv from env */
if (!_tbm_load_module(gBufMgr, gBufMgr->fd)) {
+ /* LCOV_EXCL_START */
_tbm_set_last_result(TBM_BO_ERROR_LOAD_MODULE_FAILED);
TBM_LOG_E("error : Fail to load bufmgr backend\n");
gBufMgr = NULL;
pthread_mutex_unlock(&gLock);
return NULL;
+ /* LCOV_EXCL_STOP */
}
/* log for tbm backend_flag */
gBufMgr, gBufMgr->ref_count);
if (pthread_mutex_init(&gBufMgr->lock, NULL) != 0) {
+ /* LCOV_EXCL_START */
_tbm_set_last_result(TBM_BO_ERROR_THREAD_INIT_FAILED);
gBufMgr->backend->bufmgr_deinit(gBufMgr->backend->priv);
tbm_backend_free(gBufMgr->backend);
gBufMgr = NULL;
pthread_mutex_unlock(&gLock);
return NULL;
+ /* LCOV_EXCL_STOP */
}
/* setup the lock_type */
return 1;
}
-tbm_error_e
-tbm_get_last_error(void)
-{
- return tbm_last_error;
-}
-
unsigned int
tbm_bufmgr_get_capability(tbm_bufmgr bufmgr)
{
return bo->flags;
}
+/* LCOV_EXCL_START */
+tbm_error_e
+tbm_get_last_error(void)
+{
+ return tbm_last_error;
+}
+
void
tbm_bufmgr_debug_show(tbm_bufmgr bufmgr)
{
return 1;
}
-
+/* LCOV_EXCL_STOP */
\ No newline at end of file
#include <sys/types.h>
#include "tbm_bufmgr_int.h"
+/* LCOV_EXCL_START */
tbm_bufmgr_backend tbm_backend_alloc(void)
{
tbm_bufmgr_backend bufmgr_backend;
return 1;
}
+/* LCOV_EXCL_STOP */
\ No newline at end of file
uint32_t capabilities;
};
+/* LCOV_EXCL_START */
static void
handle_tbm_drm_authentication_info(void *data, struct wl_tbm_drm_auth *wl_tbm_drm_auth, const char *device_name, uint32_t capabilities, int32_t auth_fd)
{
return 1;
}
+/* LCOV_EXCL_STOP */
\ No newline at end of file
struct wayland_tbm_drm_auth_server *tbm_drm_auth_srv;
+/* LCOV_EXCL_START */
static void
_send_server_auth_info(struct wayland_tbm_drm_auth_server *tbm_drm_auth_srv,
struct wl_resource *resource)
return;
}
}
-
+/* LCOV_EXCL_STOP */
\ No newline at end of file
static tbm_bufmgr g_surface_bufmgr;
static pthread_mutex_t tbm_surface_lock;
+/* LCOV_EXCL_START */
char *
_tbm_surface_internal_format_to_str(tbm_format format)
{
return "unknwon";
}
}
+/* LCOV_EXCL_STOP */
static bool
_tbm_surface_mutex_init(void)
}
if (mgr->backend->surface_bo_alloc) {
-
+ /* LCOV_EXCL_START */
tbm_bo bo = NULL;
void *bo_priv = NULL;
pthread_mutex_unlock(&surf->bufmgr->lock);
surf->bos[i] = bo;
-
+ /* LCOV_EXCL_STOP */
} else {
surf->bos[i] = tbm_bo_alloc(mgr, bo_size, flags);
}
return bo_idx;
}
-unsigned int
-_tbm_surface_internal_get_debug_pid(tbm_surface_h surface)
-{
- TBM_RETURN_VAL_IF_FAIL(surface, 0);
-
- return surface->debug_pid;
-}
-
-void
-tbm_surface_internal_set_debug_pid(tbm_surface_h surface, unsigned int pid)
-{
- TBM_RETURN_IF_FAIL(tbm_surface_internal_is_valid(surface));
-
- surface->debug_pid = pid;
-}
-
int
tbm_surface_internal_add_user_data(tbm_surface_h surface, unsigned long key,
tbm_data_free data_free_func)
return 1;
}
+/* LCOV_EXCL_START */
+unsigned int
+_tbm_surface_internal_get_debug_pid(tbm_surface_h surface)
+{
+ TBM_RETURN_VAL_IF_FAIL(surface, 0);
+
+ return surface->debug_pid;
+}
+
+void
+tbm_surface_internal_set_debug_pid(tbm_surface_h surface, unsigned int pid)
+{
+ TBM_RETURN_IF_FAIL(tbm_surface_internal_is_valid(surface));
+
+ surface->debug_pid = pid;
+}
+
typedef struct _tbm_surface_dump_info tbm_surface_dump_info;
typedef struct _tbm_surface_dump_buf_info tbm_surface_dump_buf_info;
TBM_LOG_I("Dump %s \n", buf_info->name);
}
-
+/*LCOV_EXCL_STOP*/
void *alloc_cb_data;
};
+/* LCOV_EXCL_START */
static queue_node *
_queue_node_create(void)
{
return surface_queue;
}
+/* LCOV_EXCL_STOP */
\ No newline at end of file