replicant-frameworks_native/libs/gui
Mathias Agopian 595264f1af BufferQueue improvements and APIs changes
this is the first step of a series of improvements to
BufferQueue. A few things happen in this change:

- setSynchronousMode() goes away as well as the SynchronousModeAllowed flag
- BufferQueue now defaults to (what used to be) synchronous mode
- a new "controlled by app" flag is passed when creating consumers and producers
  those flags are used to put the BufferQueue in a mode where it
  will never block if both flags are set. This is achieved by:
  - returning an error from dequeueBuffer() if it would block
  - making sure a buffer is always available by replacing
    the previous buffer with the new one in queueBuffer()
    (note: this is similar to what asynchrnous mode used to be)

Note: in this change EGL's swap-interval 0 is broken; this will be
fixed in another change.

Change-Id: I691f9507d6e2e158287e3039f2a79a4d4434211d
2013-07-18 22:28:18 -07:00
..
tests BufferQueue improvements and APIs changes 2013-07-18 22:28:18 -07:00
Android.mk BufferQueue improvements and APIs changes 2013-07-18 22:28:18 -07:00
BitTube.cpp return errors properly in BitTube and SensorEventQueue 2012-05-07 18:22:16 -07:00
BufferItemConsumer.cpp BufferQueue improvements and APIs changes 2013-07-18 22:28:18 -07:00
BufferQueue.cpp BufferQueue improvements and APIs changes 2013-07-18 22:28:18 -07:00
CleanSpec.mk Fix missing parens in CleanSpec.mk. 2012-10-04 20:05:19 -07:00
ConsumerBase.cpp BufferQueue improvements and APIs changes 2013-07-18 22:28:18 -07:00
CpuConsumer.cpp BufferQueue improvements and APIs changes 2013-07-18 22:28:18 -07:00
DisplayEventReceiver.cpp use a socketpair instead of a pipe in BitTube 2012-04-02 18:41:10 -07:00
GLConsumer.cpp BufferQueue improvements and APIs changes 2013-07-18 22:28:18 -07:00
GraphicBufferAlloc.cpp SurfaceFlinger: Move GraphicBufferAlloc to libgui 2012-12-11 17:54:29 -08:00
GuiConfig.cpp don't use compile-time configuration of libgui as much as possible 2013-03-29 15:33:47 -07:00
IDisplayEventConnection.cpp Improve the VSYNC api a bit. 2011-12-06 22:43:10 -08:00
IGraphicBufferAlloc.cpp libgui: add some error checks 2012-08-30 18:38:11 -07:00
IGraphicBufferProducer.cpp BufferQueue improvements and APIs changes 2013-07-18 22:28:18 -07:00
ISensorEventConnection.cpp
ISensorServer.cpp improve [un]marshalling of non-binder objects 2012-08-13 02:46:05 -07:00
ISurfaceComposer.cpp rework how we take screenshots for a CPU consumer 2013-03-19 22:22:21 -07:00
ISurfaceComposerClient.cpp get rid of ISurface 2013-03-12 17:11:48 -07:00
LayerState.cpp get rid of Surface identity and token 2013-02-13 15:27:08 -08:00
Sensor.cpp improve [un]marshalling of non-binder objects 2012-08-13 02:46:05 -07:00
SensorEventQueue.cpp return errors properly in BitTube and SensorEventQueue 2012-05-07 18:22:16 -07:00
SensorManager.cpp Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 13:19:13 +00:00
Surface.cpp BufferQueue improvements and APIs changes 2013-07-18 22:28:18 -07:00
SurfaceComposerClient.cpp always pass the BufferQueue explicitely to consumers 2013-07-12 22:06:26 -07:00
SurfaceControl.cpp Merge "Revert "Revert "Change SurfaceControl setPosition to take floats""" into jb-mr2-dev 2013-03-21 15:52:49 +00:00
SyncFeatures.cpp don't use compile-time configuration of libgui as much as possible 2013-03-29 15:33:47 -07:00