summaryrefslogtreecommitdiff
path: root/include/input/InputWindow.h
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2020-07-01 10:57:59 -0700
committer Chavi Weingarten <chaviw@google.com> 2020-07-13 17:47:40 +0000
commitfd9c1edef5e398a46a92ad0f9f9dd1bff3e8af48 (patch)
treea405bb5d509a4cb40dc731ec330f85fd49cc917e /include/input/InputWindow.h
parentc6a2f3a47d46c990105d58d6e3707b189605cbc1 (diff)
Added libui dependencies for input
Allow Input to support Transform class from libui and add Transform objects to MotionEvent and InputWindowInfo Test: Builds Bug: 158476194 Change-Id: Ic6f2507dbead97c2124dde8c8946add377d724c6
Diffstat (limited to 'include/input/InputWindow.h')
-rw-r--r--include/input/InputWindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/input/InputWindow.h b/include/input/InputWindow.h
index f8c759c85d..6a42ff6eb4 100644
--- a/include/input/InputWindow.h
+++ b/include/input/InputWindow.h
@@ -21,6 +21,7 @@
#include <input/InputTransport.h>
#include <ui/Rect.h>
#include <ui/Region.h>
+#include <ui/Transform.h>
#include <utils/RefBase.h>
#include <utils/Timers.h>
@@ -160,6 +161,9 @@ struct InputWindowInfo {
float windowXScale = 1.0f;
float windowYScale = 1.0f;
+ // Transform applied to individual windows.
+ ui::Transform transform;
+
/*
* This is filled in by the WM relative to the frame and then translated
* to absolute coordinates by SurfaceFlinger once the frame is computed.