summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-06-09 23:39:15 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-08-24 17:12:34 +0000
commitc220018c1da4b888b31943c20d87a026d9477a1e (patch)
treed0aa73c4b81c47ca2628eb2e320d5c5f66e65c61 /libs/input/PointerController.cpp
parent1700e61f4fd9b66c92b5a5a21bb0382c251c9419 (diff)
Introduce PointerChoreographer stage in C++
PointerChoreographer will be the new inputflinger component responsible for managing the pointer icons drawn on the screen. In this CL, we set up the PointerChoreographer, which will be created when the choreographer is enabled. Bug: 293587049 Bug: 278783893 Test: adb shell setprop persist.input.enable_pointer_choreographer 1; boot Change-Id: Ib6b124db4108d11260b220cc57444007b9d865a6
Diffstat (limited to 'libs/input/PointerController.cpp')
-rw-r--r--libs/input/PointerController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/input/PointerController.cpp b/libs/input/PointerController.cpp
index 435452c11370..9695e6f0d733 100644
--- a/libs/input/PointerController.cpp
+++ b/libs/input/PointerController.cpp
@@ -290,7 +290,7 @@ void PointerController::doInactivityTimeout() {
fade(Transition::GRADUAL);
}
-void PointerController::onDisplayViewportsUpdated(std::vector<DisplayViewport>& viewports) {
+void PointerController::onDisplayViewportsUpdated(const std::vector<DisplayViewport>& viewports) {
std::unordered_set<int32_t> displayIdSet;
for (const DisplayViewport& viewport : viewports) {
displayIdSet.insert(viewport.displayId);