diff options
| author | 2019-01-03 07:54:18 +0000 | |
|---|---|---|
| committer | 2019-01-03 07:54:18 +0000 | |
| commit | 69ca43e36679de0795967be37b54304e7793c71c (patch) | |
| tree | cc008e36d62dbf6f1a1497042f75b6d4090dd9e9 /services/inputflinger/InputReader.cpp | |
| parent | b9992305024e29532c68bdbc9a8976ccf8ca2484 (diff) | |
| parent | add8929f1d781fabf5526d90c17a853274655e79 (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.cpp | 6 | 
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);  }  |