tdm_private_backend *private_backend;
tdm_func_layer *func_layer;
tbm_surface_h buffer = NULL;
- tdm_private_layer_buffer *layer_buffer;
LAYER_FUNC_ENTRY_VOID_RETURN();
_pthread_mutex_lock(&private_display->lock);
/* LCOV_EXCL_STOP */
}
- layer_buffer = calloc(1, sizeof(tdm_private_layer_buffer));
- if (!layer_buffer) {
- /* LCOV_EXCL_START */
- _pthread_mutex_unlock(&private_display->lock);
- TDM_ERR("alloc failed");
- return;
- /* LCOV_EXCL_STOP */
- }
- LIST_INITHEAD(&layer_buffer->link);
-
if (TBM_SURFACE_QUEUE_ERROR_NONE != tbm_surface_queue_acquire(private_layer->buffer_queue, &buffer) ||
buffer == NULL) {
/* LCOV_EXCL_START */
TDM_ERR("layer(%p) tbm_surface_queue_acquire() failed surface:%p",
private_layer, buffer);
_pthread_mutex_unlock(&private_display->lock);
- free(layer_buffer);
return;
/* LCOV_EXCL_STOP */
}