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
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
IGraphicBufferAlloc.h
IGraphicBufferProducer.h Fix argument types in IGraphicBufferProducer methods 2013-03-18 14:16:02 -07:00
ISensorEventConnection.h
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
SensorEventQueue.h
SensorManager.h
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