diff options
| author | 2022-10-31 22:18:10 +0000 | |
|---|---|---|
| committer | 2022-11-03 19:17:25 +0000 | |
| commit | 8aed5d2b7b621849e66cb638951df4de301c9a12 (patch) | |
| tree | 81213dc79a38f2150013a08eec5a65e251d49b3d /libs/gui/LayerDebugInfo.cpp | |
| parent | d500ef2e8a803528652fd1c002944cc001f52783 (diff) | |
RE: move useProtectedContext calls to drawLayers
This change removes a race condition when calling RenderEngine from
multiple threads. Before this change, two competing threads could call
RenderEngine::useProtectedContext with different values, potentially
causing RenderEngine::drawLayers to use the wrong context.
We currently call RenderEngine from a single thread but that will change
with the upcoming refactor of SurfaceFlinger::renderScreenImpl.
Bug: 238643986
Test: presubmits
Change-Id: I78ca00797b1604cedae1f134e963b6b78f2b802f
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions