tbm_bufmgr bufmgr = bo->bufmgr;
int ret = 0;
- if (bufmgr->backend->bo_lock) {
+ if (bufmgr->backend->bo_lock)
ret = bufmgr->backend->bo_lock(bo, device, opt);
- } else {
+ else
ret = 1;
- }
return ret;
}
{
tbm_bufmgr bufmgr = bo->bufmgr;
- if (bufmgr->backend->bo_unlock) {
+ if (bufmgr->backend->bo_unlock)
bufmgr->backend->bo_unlock(bo);
- }
}
static int
return 1;
}
-/* LCOV_EXCL_STOP */
\ No newline at end of file
+/* LCOV_EXCL_STOP */
return 1;
}
-/* LCOV_EXCL_STOP */
\ No newline at end of file
+/* LCOV_EXCL_STOP */
#ifdef DEBUG
extern int bDebug;
-#define DBG(...) {if (bDebug&0x1) TBM_LOG_D(__VA_ARGS__);}
-#define DBG_LOCK(...) {if (bDebug&0x2) TBM_LOG_D(__VA_ARGS__);}
+#define DBG(...) { if (bDebug&0x1) TBM_LOG_D(__VA_ARGS__); }
+#define DBG_LOCK(...) { if (bDebug&0x2) TBM_LOG_D(__VA_ARGS__); }
#else
#define DBG(...)
#define DBG_LOCK(...)
uint32_t *formats;
uint32_t format_num;
int ret, i;
+ tbm_surface_error_e tse;
- if (tbm_surface_query_formats (&formats, &format_num))
+ tse = tbm_surface_query_formats (&formats, &format_num))
+
+ for( i = 0 ; i < format_num ; i++)
{
- for( i = 0 ; i < format_num ; i++)
+ if (formats[i] == TBM_FORMAT_RGB332)
{
- if (formats[i] == TBM_FORMAT_RGB332)
- {
-
....
free (formats);
*num = 0;
LIST_FOR_EACH_ENTRY_SAFE(node, tmp, &surface_queue->list, link) {
- if (surfaces) {
+ if (surfaces)
surfaces[*num] = node->surface;
- }
+
*num = *num + 1;
}
typedef struct _tbm_surface_queue *tbm_surface_queue_h;
-typedef void (*tbm_surface_queue_notify_cb) (tbm_surface_queue_h surface_queue,
+typedef void (*tbm_surface_queue_notify_cb)(tbm_surface_queue_h surface_queue,
void *data);
-typedef tbm_surface_h (*tbm_surface_alloc_cb) (tbm_surface_queue_h surface_queue,
+typedef tbm_surface_h (*tbm_surface_alloc_cb)(tbm_surface_queue_h surface_queue,
void *data);
-typedef void (*tbm_surface_free_cb) (tbm_surface_queue_h surface_queue,
+typedef void (*tbm_surface_free_cb)(tbm_surface_queue_h surface_queue,
void *data, tbm_surface_h surface);
#ifdef __cplusplus