diff options
| author | 2021-07-29 16:18:49 +0000 | |
|---|---|---|
| committer | 2021-07-29 16:18:49 +0000 | |
| commit | 6bb73f6d24f602a814f9929828d7fa60100f693e (patch) | |
| tree | 348b971ddccc8e762a7be8a1c7d37f1b8d48bfa4 /services/inputflinger/InputManager.cpp | |
| parent | 675625eeaddc9805bd022b0563a896c5375acdda (diff) | |
| parent | a6ccdf9d11adecdc1fa1d5d6559db2d6160adce9 (diff) | |
Merge "Add WindowInfosListener to Input" into sc-v2-dev am: a6ccdf9d11
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/14885199
Change-Id: Ic62c1065978d2a43c67a692523399097224689ec
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
| -rw-r--r-- | services/inputflinger/InputManager.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp index e81dcfe4f1..693b1f977f 100644 --- a/services/inputflinger/InputManager.cpp +++ b/services/inputflinger/InputManager.cpp @@ -114,15 +114,6 @@ sp<InputDispatcherInterface> InputManager::getDispatcher() { return mDispatcher; } -class BinderWindowHandle : public WindowInfoHandle { -public: - BinderWindowHandle(const WindowInfo& info) { mInfo = info; } - - bool updateInfo() override { - return true; - } -}; - binder::Status InputManager::setInputWindows( const std::vector<WindowInfo>& infos, const sp<ISetInputWindowsListener>& setInputWindowsListener) { @@ -131,7 +122,7 @@ binder::Status InputManager::setInputWindows( std::vector<sp<WindowInfoHandle>> handles; for (const auto& info : infos) { handlesPerDisplay.emplace(info.displayId, std::vector<sp<WindowInfoHandle>>()); - handlesPerDisplay[info.displayId].push_back(new BinderWindowHandle(info)); + handlesPerDisplay[info.displayId].push_back(new WindowInfoHandle(info)); } mDispatcher->setInputWindows(handlesPerDisplay); |