Commit 1bc572e4 authored by spang's avatar spang Committed by Commit bot

ozone: evdev: Remove native size member from TouchEventConverterEvdev

This used to store the original size prior to calibration but that
changed in r304472 ("Keep track of window -> displays mapping"). It no
longer behaves as documented & isn't necessary, so remove it.

TEST=compile
BUG=none

Review URL: https://codereview.chromium.org/1035513002

Cr-Commit-Position: refs/heads/master@{#322046}
parent a4c0df0e
...@@ -114,8 +114,6 @@ void TouchEventConverterEvdev::Initialize(const EventDeviceInfo& info) { ...@@ -114,8 +114,6 @@ void TouchEventConverterEvdev::Initialize(const EventDeviceInfo& info) {
cal.bezel_bottom); cal.bezel_bottom);
} }
native_size_ = gfx::Size(x_num_tuxels_, y_num_tuxels_);
events_.resize(touch_points_); events_.resize(touch_points_);
for (size_t i = 0; i < events_.size(); ++i) { for (size_t i = 0; i < events_.size(); ++i) {
events_[i].finger_ = info.GetSlotValue(ABS_MT_TRACKING_ID, i); events_[i].finger_ = info.GetSlotValue(ABS_MT_TRACKING_ID, i);
...@@ -143,7 +141,7 @@ bool TouchEventConverterEvdev::HasTouchscreen() const { ...@@ -143,7 +141,7 @@ bool TouchEventConverterEvdev::HasTouchscreen() const {
} }
gfx::Size TouchEventConverterEvdev::GetTouchscreenSize() const { gfx::Size TouchEventConverterEvdev::GetTouchscreenSize() const {
return native_size_; return gfx::Size(x_num_tuxels_, y_num_tuxels_);
} }
int TouchEventConverterEvdev::GetTouchPoints() const { int TouchEventConverterEvdev::GetTouchPoints() const {
......
...@@ -89,9 +89,6 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev ...@@ -89,9 +89,6 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev
float y_min_tuxels_; float y_min_tuxels_;
float y_num_tuxels_; float y_num_tuxels_;
// Size of the touchscreen as reported by the driver.
gfx::Size native_size_;
// Number of touch points reported by driver // Number of touch points reported by driver
int touch_points_; int touch_points_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment