summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Matt Buckley <mattbuckley@google.com> 2023-06-20 22:51:05 +0000
committer Matt Buckley <mattbuckley@google.com> 2023-06-26 22:21:16 +0000
commite278da130ce2f40533dfdb64f7f2240beacf1691 (patch)
tree547794f757706511feee7e13f2f0b545af1ee690 /libs/hwui/FrameInfoVisualizer.cpp
parent334d43412236fdbf44271a0b5f032881d758ec01 (diff)
Update ShaderCache to support shared locking
Currently, the shadercache can lock for a long time when writing the cache to disk while vulkan is trying to access it, causing frame drops. However, neither operation actually requires write access. By using shared_locks, both operations can happen concurrently eliminating this contention and saving the frame(s). Test: atest hwui_unit_tests:ShaderCacheTest Bug: 288252750 Change-Id: I26c5bee001d44cdd75766e9cb5974bd9337819ab
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions