diff options
| author | 2015-04-28 14:42:06 -0700 | |
|---|---|---|
| committer | 2015-04-30 15:29:05 -0700 | |
| commit | 2e36f2283f48ab764b496490c73a132acf21df3a (patch) | |
| tree | 9c6a951420250a966b71b12317927c4d1d49114d /libs/gui/ConsumerBase.cpp | |
| parent | 8de71a2408f632407c25942a39c31f78c7f64ffd (diff) | |
SurfaceFlinger: Fix PTS on stale buffers
SurfaceFlinger's (Layer's) shadow copy of the BufferQueue queue was
getting out of sync for a few reasons. This change fixes these by
doing the following:
- Adds a check to re-synchronize the shadow copy every time we
successfully acquire a buffer by first dropping stale buffers before
removing the current buffer.
- Avoids trying to perform updates for buffers which have been rejected
(for incorrect dimensions) by SurfaceFlinger.
- Adds IGraphicBufferConsumer::setShadowQueueSize, which allows the
consumer to notify the BufferQueue that it is maintaining a shadow
copy of the queue and prevents it from dropping so many buffers
during acquireBuffer that it ends up returning a buffer for which the
consumer has not yet received an onFrameAvailable call.
Bug: 20096136
Change-Id: I78d0738428005fc19b3be85cc8f1db498043612f
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions