diff options
| author | 2018-11-16 13:07:47 -0800 | |
|---|---|---|
| committer | 2018-11-16 16:10:31 -0800 | |
| commit | 4efb6c215182dfd457d27d9b6be19c9a3cd05b44 (patch) | |
| tree | 7f8c634cd2fa1e486b2cba82f0cec4a98b6af37b /libs/gui/BufferQueueThreadState.cpp | |
| parent | 0a9c7b814bdf4d1ae16ef75de4b8fa58c7ded493 (diff) | |
Always set usage bits for GPU comp in DisplayDevice.
* Always set GRALLOC_USAGE_HW_RENDER as usage bit
* Always use RGBA8888 buffer for the GPU to render to.
Otherwise, some virtual display sinks can request a YUV buffer, which
the GPU cannot render to.
Also add back in a connect call for the scratch buffer, since that
should not have been removed.
Bug: 117680609
Change-Id: Ia0c2e99db839ff681529c041a471242d25a8f743
Test: Simulating virtual displays
Test: adb shell screenrecord
Test: Chromecast display mirroring
Test: Simulating virtual displays while mirroring displays
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions