summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvan Rosky <erosky@google.com>2021-05-06 22:08:21 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-05-06 22:08:21 +0000
commit00c2e36c3b9aa33b3457f47c08ab804291fcc64c (patch)
treecb716924ab6987797bc91d4c55d1d5ddf0f8a3a2 /include
parentc8ffd2fc5d3b8457b7237799ea338b5503a4ce58 (diff)
parentd4d4d80f73ad7c389af3dc2357582d989eb5957e (diff)
Merge "Add a hidden API to apply a transform the content of an event." into sc-dev
Diffstat (limited to 'include')
-rw-r--r--include/input/Input.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/input/Input.h b/include/input/Input.h
index 7b522bbc1e..a23ed9854e 100644
--- a/include/input/Input.h
+++ b/include/input/Input.h
@@ -746,10 +746,14 @@ public:
void scale(float globalScaleFactor);
- // Apply 3x3 perspective matrix transformation.
+ // Set 3x3 perspective matrix transformation.
// Matrix is in row-major form and compatible with SkMatrix.
void transform(const std::array<float, 9>& matrix);
+ // Apply 3x3 perspective matrix transformation only to content (do not modify mTransform).
+ // Matrix is in row-major form and compatible with SkMatrix.
+ void applyTransform(const std::array<float, 9>& matrix);
+
#ifdef __linux__
status_t readFromParcel(Parcel* parcel);
status_t writeToParcel(Parcel* parcel) const;