int width;
int height;
int format;
+ int queue_size;
queue free_queue;
queue dirty_queue;
void
_tbm_surface_queue_init(tbm_surface_queue_h surface_queue,
+ int queue_size,
int width, int height, int format,
const tbm_surface_queue_interface *impl, void *data)
{
pthread_cond_init(&surface_queue->free_cond, NULL);
pthread_cond_init(&surface_queue->dirty_cond, NULL);
+ surface_queue->queue_size = queue_size;
surface_queue->width = width;
surface_queue->height = height;
surface_queue->format = format;
return surface_queue->format;
}
+int
+tbm_surface_queue_get_size(tbm_surface_queue_h surface_queue)
+{
+ return surface_queue->queue_size;
+}
+
tbm_surface_queue_error_e
tbm_surface_queue_set_reset_cb(
tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb reset_cb,
data->queue_size = queue_size;
data->flags = flags;
_tbm_surface_queue_init(surface_queue,
+ data->queue_size,
width, height, format,
&tbm_queue_default_impl, data);
data->queue_size = queue_size;
data->flags = flags;
_tbm_surface_queue_init(surface_queue,
+ data->queue_size,
width, height, format,
&tbm_queue_sequence_impl, data);
int tbm_surface_queue_get_format(tbm_surface_queue_h surface_queue);
+int tbm_surface_queue_get_size(tbm_surface_queue_h surface_queue);
+
tbm_surface_queue_error_e tbm_surface_queue_reset(
tbm_surface_queue_h surface_queue, int width, int height, int format);