tpl_backend_type_t tpl_display_get_backend_type(tpl_display_t *display);
/**
- * Get file descriptor of the buffer manager for the given TPL display.
- *
- * There might be native buffer manager device (ex. DRM). This function exports
- * such native buffer manager for users to be able to access buffers using the
- * buffer manager. How returned buffer manager fd is used is fully dependent on
- * native platform implementation.
- *
- * @param display display to get buffer manger fd.
- * @return file descriptor handle for the buffer manager.
- */
-int tpl_display_get_bufmgr_fd(tpl_display_t *display);
-
-/**
* Get the native display handle which the given TPL display is created for.
*
* @param display display to get native handle.
return display->backend.type;
}
-int
-tpl_display_get_bufmgr_fd(tpl_display_t *display)
-{
- if(NULL == display || TPL_TRUE != __tpl_object_is_valid(&display->base))
- {
- TPL_ERR("display is invalid!");
- return -1;
- }
-
- return display->bufmgr_fd;
-}
-
tpl_handle_t
tpl_display_get_native_handle(tpl_display_t *display)
{
goto finish;
}
- //tpl_display_get_bufmgr_fd
- int test_fd = -1;
- test_fd = tpl_display_get_bufmgr_fd(wnd->tpl_display);
- if(test_fd == -1)
- {
- LOG("ERRO", LOG_LEVEL_HIGH , "failed:tpl_display_get_bufmgr_fd");
- ret = false;
- goto finish;
- }
-
//tpl_display_get_native_handle
tpl_handle_t test_handle = NULL;
test_handle = tpl_display_get_native_handle(wnd->tpl_display);
tpl_display_bind_client_display_handle(NULL,NULL);
tpl_display_unbind_client_display_handle(NULL,NULL);
tpl_display_get_backend_type(NULL);
- tpl_display_get_bufmgr_fd(NULL);
tpl_display_get_native_handle(NULL);
tpl_display_filter_config(NULL,NULL,0);
tpl_display_query_config(NULL,TPL_SURFACE_TYPE_PIXMAP,0,8,8,8,24,NULL,NULL);