summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputReader.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-01-03 07:54:18 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-01-03 07:54:18 +0000
commit69ca43e36679de0795967be37b54304e7793c71c (patch)
treecc008e36d62dbf6f1a1497042f75b6d4090dd9e9 /services/inputflinger/InputReader.cpp
parentb9992305024e29532c68bdbc9a8976ccf8ca2484 (diff)
parentadd8929f1d781fabf5526d90c17a853274655e79 (diff)
Merge changes from topic "read heatmap"
* changes: Consume video frames Add video device to epoll in EventHub
Diffstat (limited to 'services/inputflinger/InputReader.cpp')
-rw-r--r--services/inputflinger/InputReader.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/inputflinger/InputReader.cpp b/services/inputflinger/InputReader.cpp
index 73fcb1124d..3d5f1d92d5 100644
--- a/services/inputflinger/InputReader.cpp
+++ b/services/inputflinger/InputReader.cpp
@@ -6483,11 +6483,13 @@ void TouchInputMapper::dispatchMotion(nsecs_t when, uint32_t policyFlags, uint32
}
}
- NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(),
+ const int32_t deviceId = getDeviceId();
+ std::vector<TouchVideoFrame> frames = mDevice->getEventHub()->getVideoFrames(deviceId);
+ NotifyMotionArgs args(mContext->getNextSequenceNum(), when, deviceId,
source, mViewport.displayId, policyFlags,
action, actionButton, flags, metaState, buttonState, edgeFlags,
deviceTimestamp, pointerCount, pointerProperties, pointerCoords,
- xPrecision, yPrecision, downTime, /* videoFrames */ {});
+ xPrecision, yPrecision, downTime, std::move(frames));
getListener()->notifyMotion(&args);
}