__tbm_queue_sequence_enqueue: enqueue only one the surface 58/147758/4
authorKonstantin Drabeniuk <k.drabeniuk@samsung.com>
Tue, 5 Sep 2017 11:57:04 +0000 (14:57 +0300)
committerKonstantin Drabeniuk <k.drabeniuk@samsung.com>
Tue, 5 Sep 2017 12:50:27 +0000 (15:50 +0300)
commiteae7e1bfb858bfb0ef33a4e66a66bb79ebdbf980
tree795eeae03b20bd517593d2a4e41cd2638a2b43e2
parent5488b91181e0a3defa8a2e42658c913220d92174
__tbm_queue_sequence_enqueue: enqueue only one the surface

For example you dequeued the surfaces 1, 2.
If you enqueue the surface 2 the enqueue operation will be failed but
the priv_flags will remain 0. Then when you enqueue the surface 1 the
enqueue operation will be successful but you have enqueued the surface 2
too because the priv_flags for the surface 2 is 0. But you got the error
for the enqueue operation of surface 2. And you can try again to enqueue
the surface 2. But you will get the
TBM_SURFACE_QUEUE_ERROR_ALREADY_EXIST
error.
So I think we need enqueue only one the surface if it is first in the
dequeue_list

Change-Id: I055f9c565dd4697d6d3495058d9e3fa986cc1a13
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
src/tbm_surface_queue.c