summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Steven Thomas <steventhomas@google.com> 2017-07-17 13:59:23 -0700
committer Steven Thomas <steventhomas@google.com> 2017-07-17 15:10:53 -0700
commitf5a5f6e810fb5064b81d0b5360fe65829eb90980 (patch)
tree81f02206a471c66f969c0b560b75c5683b8ccbd5 /libs/gui/ConsumerBase.cpp
parentfec340ea0f82435c8fddeb10cb00b619259d08f2 (diff)
Fix concurrent writes to the hardware composer
Stale hardware composer layers were causing concurrent writes to the Composer object from the surface flinger and vr flinger threads, a big no-no. The concurrent writes would sometimes stomp on each other, causing the hardware composer service to fail to read the command buffer containing surface flinger's composer commands, leading to all sorts of issues. Bug: 62925812 Test: Locally added logs to surface flinger to catch the concurrent writes, and confirmed the logs are no longer present with this patch applied. Went through a bunch of sleep/wake cycles and confirmed the device continues to function normally. Change-Id: I70929c4a3c71142f5e9083cac294c122d127aa27
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions