Change-Id: I3e94ff083fc0ee65e5bdbed965c5f1b39bee7abd
TBM_SURFACE_QUEUE_ERROR_SURFACE_ALLOC_FAILED = TBM_ERROR_BASE | 0x0304, /**< Allocation of surface failed */
TBM_SURFACE_QUEUE_ERROR_ALREADY_EXIST = TBM_ERROR_BASE | 0x0305, /**< Already existed surface */
TBM_SURFACE_QUEUE_ERROR_UNKNOWN_SURFACE = TBM_ERROR_BASE | 0x0306, /**< Unknown surface */
TBM_SURFACE_QUEUE_ERROR_SURFACE_ALLOC_FAILED = TBM_ERROR_BASE | 0x0304, /**< Allocation of surface failed */
TBM_SURFACE_QUEUE_ERROR_ALREADY_EXIST = TBM_ERROR_BASE | 0x0305, /**< Already existed surface */
TBM_SURFACE_QUEUE_ERROR_UNKNOWN_SURFACE = TBM_ERROR_BASE | 0x0306, /**< Unknown surface */
+ TBM_SURFACE_QUEUE_ERROR_INVALID_SEQUENCE = TBM_ERROR_BASE | 0x0307, /**< Invalid sequence */
} tbm_error_e;
typedef tbm_error_e tbm_surface_queue_error_e;
} tbm_error_e;
typedef tbm_error_e tbm_surface_queue_error_e;
if (!_queue_get_node(surface_queue, DIRTY_QUEUE, surface, NULL)) {
TBM_ERR("enqueue surface(%p) but surface isn't present in the dirty_queue\n", surface);
if (!_queue_get_node(surface_queue, DIRTY_QUEUE, surface, NULL)) {
TBM_ERR("enqueue surface(%p) but surface isn't present in the dirty_queue\n", surface);
- _tbm_set_last_result(TBM_SURFACE_ERROR_INVALID_OPERATION);
+ _tbm_set_last_result(TBM_SURFACE_QUEUE_ERROR_INVALID_SEQUENCE);
pthread_mutex_unlock(&surface_queue->lock);
_tbm_surf_queue_mutex_unlock();
pthread_mutex_unlock(&surface_queue->lock);
_tbm_surf_queue_mutex_unlock();
- return TBM_SURFACE_ERROR_INVALID_OPERATION;
+ return TBM_SURFACE_QUEUE_ERROR_INVALID_SEQUENCE;
}
node->type = QUEUE_NODE_TYPE_ENQUEUE;
}
node->type = QUEUE_NODE_TYPE_ENQUEUE;