summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2025-01-27 14:57:47 -0800
committer Siarhei Vishniakou <svv@google.com> 2025-01-28 13:58:45 -0800
commit117b7579525fbdfda0dd23c6cbea931819115062 (patch)
tree91fae88790a65b6a37288ea11fd2744b0c736062 /libs/gui/ConsumerBase.cpp
parent12c5cc405a526cde5139f1ce0db32792d16885dd (diff)
Create viewports in a separate function
This will allow the caller to re-use the viewport object for other purposes. That said, the whole thing is poorly designed, and there are many places where we are mixing viewports and display ids, and not just in tests, but also in production. For example, InputDevice has the concept of associating with displays, but mappers also have a way to keep track of their own associations. The current approach allows us to slightly simplify some of the current and new tests written in InputReader area. Bug: 378308551 Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST Flag: TEST_ONLY Change-Id: Ic9b476f3e991d128e429afcc096c9dc12e68f01e
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions