replicant-frameworks_native/include/gui
Mathias Agopian abe815dd69 rework how we take screenshots for a CPU consumer
We're not using IMemoryHeap as a transport anymore,
instead we're providing a CpuConsumer and use the
IGraphicBufferProducer version of the screenshot API.

However, some GPU drivers don't support properly
a GPU to CPU path, to work around this, we use a
temporary BufferQueue on the server side for the
GL rendering, and we use glReadPixels into the
CpuConsumer (we're now using a CPU to CPU path
which is always supported).

Currently this "wrapping" is always performed,
but it can be bypassed on devices that support
the GPU to CPU path.

This also addresses a DoS attack vector on
SurfaceFlinger, where an application could
consume all of SF's filedescriptors by creating
a lot of screenshots in a row.

Bug: 8390553

Change-Id: I9e81514c2a7711b9bb393f74305be7d2abe08f1c
2013-03-19 22:22:21 -07:00
..
BitTube.h use a socketpair instead of a pipe in BitTube 2012-04-02 18:41:10 -07:00
BufferItemConsumer.h Rename ISurfaceTexture and SurfaceTexture 2012-12-18 13:10:48 -08:00
BufferQueue.h Fix argument types in IGraphicBufferProducer methods 2013-03-18 14:16:02 -07:00
ConsumerBase.h Minor cleanups/fixes before virtual display refactoring 2013-03-18 14:16:02 -07:00
CpuConsumer.h CpuConsumer: Add optional asynchronous mode 2013-02-28 15:51:24 -08:00
DisplayEventReceiver.h Display events now always carry the display id they happened on 2012-09-21 14:20:35 -07:00
DummyConsumer.h Rename ISurfaceTexture and SurfaceTexture 2012-12-18 13:10:48 -08:00
GLConsumer.h Rename ISurfaceTexture and SurfaceTexture 2012-12-18 13:10:48 -08:00
GraphicBufferAlloc.h SurfaceFlinger: Move GraphicBufferAlloc to libgui 2012-12-11 17:54:29 -08:00
GuiConfig.h Show build config in dumpsys SurfaceFlinger 2012-09-25 11:31:46 -07:00
IDisplayEventConnection.h Improve the VSYNC api a bit. 2011-12-06 22:43:10 -08:00
IGraphicBufferAlloc.h fix libgui header location 2012-02-27 13:03:08 -08:00
IGraphicBufferProducer.h Fix argument types in IGraphicBufferProducer methods 2013-03-18 14:16:02 -07:00
ISensorEventConnection.h Rename SensorChannel to BitTube 2011-10-20 18:42:02 -07:00
ISensorServer.h
ISurfaceComposer.h rework how we take screenshots for a CPU consumer 2013-03-19 22:22:21 -07:00
ISurfaceComposerClient.h get rid of ISurface 2013-03-12 17:11:48 -07:00
Sensor.h improve [un]marshalling of non-binder objects 2012-08-13 02:46:05 -07:00
SensorEventQueue.h use a socketpair instead of a pipe in BitTube 2012-04-02 18:41:10 -07:00
SensorManager.h SensorManager reconnects to sensor service when the later dies 2011-10-16 22:15:23 -07:00
Surface.h Surface can now be created only from an IGraphicBufferProducer 2013-03-12 18:45:09 -07:00
SurfaceComposerClient.h rework how we take screenshots for a CPU consumer 2013-03-19 22:22:21 -07:00
SurfaceControl.h get rid of ISurface 2013-03-12 17:11:48 -07:00