OSDN Git Service

Let the dequeue buffer not busy wait
authorChen Bin <bin.chen@intel.com>
Mon, 15 Apr 2013 02:51:18 +0000 (10:51 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 3 Jan 2014 16:54:36 +0000 (00:54 +0800)
commit2f86af1ae0b780e793e208ae13ce12d7b8ab0ecd
treec9e840e4d1e42518e4c334849fa50a38e96da483
parentb54a5c35e6054e4ae58a597ca9d6889c9f9102e5
Let the dequeue buffer not busy wait

BZ:99992

UI thread and Surfaceflinger Thread are in the same process. They have race to map the
same buffer. and may cause Dequeue buffer failed.
Then UI thread will busy wait for dequeue buffer condition for ever, system will always
black screen.
This Patch don't let UI thread busy wait, and free all buffer to let system can recover.

Category: aosp improvement
Domain:  <Graphics.UI>
Origin: internal
Upstream-Candiate:yes

Change-Id: Ia8e8be40ca229b52e7003d49970986f18e89fded
Orig-Change-Id: I4db21deacf56e1abeadb43841ce1a0350b19d66f
Signed-off-by: Shi Yang <yang.a.shi@intel.com>
Signed-off-by: yifeix.xue <yifeix.xue@intel.com>
Signed-off-by: binchen1 <bin.chen@intel.com>
libs/gui/BufferQueue.cpp