diff options
| author | 2022-11-04 10:50:26 -0700 | |
|---|---|---|
| committer | 2022-11-08 11:35:28 -0800 | |
| commit | 40b8fbd17b1a483e2e51c7832ff9d01d36b519d7 (patch) | |
| tree | 82e08fbc6f60163d7eebec89a2c22ce40591c0bf /services/surfaceflinger/SurfaceFlinger.cpp | |
| parent | 3ad385bfc5db16ae0ed2c54ff9c7f474c77aff82 (diff) | |
Remove TouchState::displayId
TouchStates are already per-display, so we don't need to store the
display id inside them.
To check if touch state is "valid", we can just check if a new one was
created. A new touch state was created if the old one is null. The
inverse of that can be used to detect if "switchedDevice" should be true.
Bug: 211379801
Test: m inputflinger_tests && adb sync data && adb shell -t /data/nativetest64/inputflinger_tests/inputflinger_tests
Change-Id: I57fad4d6c28409b89fb5c6c13fc37b930e4454da
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
0 files changed, 0 insertions, 0 deletions