summaryrefslogtreecommitdiff
path: root/include/input
diff options
context:
space:
mode:
authorPrabir Pradhan <prabirmsp@google.com>2021-12-10 09:30:08 +0000
committerPrabir Pradhan <prabirmsp@google.com>2021-12-24 13:20:34 +0000
commit5beda769594b8a86439ae5969a8448f7b4c5e522 (patch)
tree79dd97ef5d6d5dd9f472a1fb85106668f8034923 /include/input
parentdaa2f14871c97919cf6922e9313a300bde4fb9b6 (diff)
downloadnative-5beda769594b8a86439ae5969a8448f7b4c5e522.tar.gz
Reland^2 "Remove x/y offset from MotionEntry"
f7c99f3f2404f9605c2801caa20b236a595afa3d Bug: 206842332 Change-Id: Id42790e6c1d562c61efb6673407a2861927df40b
Diffstat (limited to 'include/input')
-rw-r--r--include/input/Input.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/input/Input.h b/include/input/Input.h
index 1e06257591..1c79c4a21c 100644
--- a/include/input/Input.h
+++ b/include/input/Input.h
@@ -377,7 +377,6 @@ struct PointerCoords {
// window scale. The global scale will be applied to TOUCH/TOOL_MAJOR/MINOR
// axes, however the window scaling will not.
void scale(float globalScale, float windowXScale, float windowYScale);
- void applyOffset(float xOffset, float yOffset);
void transform(const ui::Transform& transform);
@@ -567,7 +566,7 @@ public:
inline float getYOffset() const { return mTransform.ty(); }
- inline ui::Transform getTransform() const { return mTransform; }
+ inline const ui::Transform& getTransform() const { return mTransform; }
inline float getXPrecision() const { return mXPrecision; }
@@ -583,7 +582,7 @@ public:
void setCursorPosition(float x, float y);
- ui::Transform getRawTransform() const { return mRawTransform; }
+ inline const ui::Transform& getRawTransform() const { return mRawTransform; }
static inline bool isValidCursorPosition(float x, float y) { return !isnan(x) && !isnan(y); }