diff options
author | 2023-01-26 11:40:03 +0000 | |
---|---|---|
committer | 2023-01-26 11:42:24 +0000 | |
commit | 86f5df6f4c1a840f2b6e5c9ca8a42c747adf1b4f (patch) | |
tree | 20749b9583dd83111b91c42dcaa9a40f045ef203 /services/surfaceflinger/RegionSamplingThread.cpp | |
parent | 156c9febd08d2ee0b4abfd2eb8a1475da7d11f69 (diff) |
Copy InputDeviceIdentifier instead of taking a reference
This line appears to be causing hwasan failures in the lab (see bug).
While a const& should extend the lifetime of the thing it's referring
to, that doesn't seem to be happening in this case, possibly because
getDeviceIdentifier isn't a simple getter. InputDeviceIdentifier isn't a
particularly large struct, and we intend to replace this code with an
IDC property anyway, so just take a copy of it.
Bug: 266534706, 251196347
Test: atest inputflinger_tests
Test: connect Sony gamepads, check old stack is used
Test: connect Apple Magic Trackpad 2, check new stack is used
Change-Id: I98f09f8226bc5e42082b07f9795eccc6de890879
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions