summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2022-07-21 18:43:10 +0000
committer Alec Mouri <alecmouri@google.com> 2022-07-21 18:43:10 +0000
commitd8f17c54eb2de73c14057614cf9e1df5dbe4d832 (patch)
treee5839ca5b60edbb4b9922bc24d31f521651a43ac /libs/gui/BufferQueueThreadState.cpp
parent90408871a1c9212078d30587cb8059b4dd9314ef (diff)
Fail gracefully when allocating screenshot buffers
Some devices have limited protected memory, and over-allocate buffers in the decoder during DRM playback of high resolution content. The decoder is able to fail gracefully, but SurfaceFlinger is stricter, causing the device to crash. More generally, SurfaceFlinger should not be so strict, because a malicious app could intentionally allocate many buffers and cause the system to crash. So, fail gracefully instead to prevent the entire system from falling over. Bug: 236200340 Test: 4K DRM playback Change-Id: Ia0018974fffc753342f78917ede0b67faa94916b
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions