summaryrefslogtreecommitdiff
path: root/libs/input/PointerControllerContext.cpp
diff options
context:
space:
mode:
author Manasi Navare <navaremanasi@google.com> 2025-02-07 15:10:43 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-02-07 15:10:43 -0800
commite579b0d69e3333e366ec4048bc55c7b05617c37f (patch)
tree41546a25e7097a2799d2fdd79d0f135bc0e67efc /libs/input/PointerControllerContext.cpp
parent65296d7c9054c5dc1acdfba673df46cd25352f01 (diff)
parent1e4d6e07e2bfe99de8ca8d7a539b5ccc5acc98d0 (diff)
Merge changes from topic "display_err_handling_bug_fixes" into main
* changes: Use Display Events from DisplayEventType Enum class Add dispatchModeRejected exception in NativeDisplayReceiver
Diffstat (limited to 'libs/input/PointerControllerContext.cpp')
-rw-r--r--libs/input/PointerControllerContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/input/PointerControllerContext.cpp b/libs/input/PointerControllerContext.cpp
index 747eb8e5ad1b..5406de8602d6 100644
--- a/libs/input/PointerControllerContext.cpp
+++ b/libs/input/PointerControllerContext.cpp
@@ -15,6 +15,7 @@
*/
#include "PointerControllerContext.h"
+
#include "PointerController.h"
namespace {
@@ -184,7 +185,7 @@ void PointerControllerContext::PointerAnimator::handleVsyncEvents() {
DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE];
while ((n = mDisplayEventReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) {
for (size_t i = 0; i < static_cast<size_t>(n); ++i) {
- if (buf[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) {
+ if (buf[i].header.type == DisplayEventType::DISPLAY_EVENT_VSYNC) {
timestamp = buf[i].header.timestamp;
gotVsync = true;
}