diff options
| author | 2019-02-16 05:08:27 +0000 | |
|---|---|---|
| committer | 2019-02-16 05:08:27 +0000 | |
| commit | b528869d30defffccd72f2ef741a5f1c3136311f (patch) | |
| tree | 57cfc2b6d27a849aed4cc68ad6b84634d127d851 /libs/input/TouchVideoFrame.cpp | |
| parent | 3487894f014cc6b1ff270cc3a5759931cd6b0fc1 (diff) | |
| parent | fda3aee5b7b17bc64e66e1f6f7aaa7d2e3ac1419 (diff) | |
Merge "Swap width and height in TouchVideoFrame"
Diffstat (limited to 'libs/input/TouchVideoFrame.cpp')
| -rw-r--r-- | libs/input/TouchVideoFrame.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/input/TouchVideoFrame.cpp b/libs/input/TouchVideoFrame.cpp index 2c47fdf36f..35cb4a73ea 100644 --- a/libs/input/TouchVideoFrame.cpp +++ b/libs/input/TouchVideoFrame.cpp @@ -18,23 +18,23 @@ namespace android { -TouchVideoFrame::TouchVideoFrame(uint32_t width, uint32_t height, std::vector<int16_t> data, +TouchVideoFrame::TouchVideoFrame(uint32_t height, uint32_t width, std::vector<int16_t> data, const struct timeval& timestamp) : - mWidth(width), mHeight(height), mData(std::move(data)), mTimestamp(timestamp) { + mHeight(height), mWidth(width),mData(std::move(data)), mTimestamp(timestamp) { } bool TouchVideoFrame::operator==(const TouchVideoFrame& rhs) const { - return mWidth == rhs.mWidth - && mHeight == rhs.mHeight + return mHeight == rhs.mHeight + && mWidth == rhs.mWidth && mData == rhs.mData && mTimestamp.tv_sec == rhs.mTimestamp.tv_sec && mTimestamp.tv_usec == rhs.mTimestamp.tv_usec; } -uint32_t TouchVideoFrame::getWidth() const { return mWidth; } - uint32_t TouchVideoFrame::getHeight() const { return mHeight; } +uint32_t TouchVideoFrame::getWidth() const { return mWidth; } + const std::vector<int16_t>& TouchVideoFrame::getData() const { return mData; } const struct timeval& TouchVideoFrame::getTimestamp() const { return mTimestamp; } |