replicant-frameworks_native/include/gui
Dan Stoza ecc504043f 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
(cherry picked from commit 2e36f2283f)
2015-05-01 12:23:44 -07:00
..
BitTube.h
BufferItem.h
BufferItemConsumer.h
BufferQueue.h
BufferQueueConsumer.h SurfaceFlinger: Fix PTS on stale buffers 2015-05-01 12:23:44 -07:00
BufferQueueCore.h SurfaceFlinger: Fix PTS on stale buffers 2015-05-01 12:23:44 -07:00
BufferQueueDefs.h
BufferQueueProducer.h libgui: Allow an IGBProducer to disable allocation 2015-04-23 15:28:12 -07:00
BufferSlot.h
ConsumerBase.h
CpuConsumer.h
DisplayEventReceiver.h
GLConsumer.h
GraphicBufferAlloc.h
GuiConfig.h
IConsumerListener.h
IDisplayEventConnection.h
IGraphicBufferAlloc.h
IGraphicBufferConsumer.h SurfaceFlinger: Fix PTS on stale buffers 2015-05-01 12:23:44 -07:00
IGraphicBufferProducer.h libgui: Allow an IGBProducer to disable allocation 2015-04-23 15:28:12 -07:00
IProducerListener.h
ISensorEventConnection.h
ISensorServer.h Enable data injection mode in SensorService. 2015-04-23 17:42:37 -07:00
ISurfaceComposer.h
ISurfaceComposerClient.h
Sensor.h
SensorEventQueue.h Enable data injection mode in SensorService. 2015-04-23 17:42:37 -07:00
SensorManager.h Build fix change method signature of enableDataInjection. 2015-04-24 19:54:46 -07:00
StreamSplitter.h
Surface.h libgui: Change detachNextBuffer to return sp<GB> 2015-04-27 11:45:58 -07:00
SurfaceComposerClient.h
SurfaceControl.h