From 42a27b5657975485a72033736f37bfe6de0e21a8 Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Thu, 18 Nov 2021 15:35:22 -0800 Subject: SF: Update InputFlinger outside main thread Avoids parceling data inside main thread and hot path. Also avoids any binder contention with one way binder calls. See bug for more details. Bug: 206380307 Test: presubmit Test: systrace Change-Id: I4f8640587c821ac471559f1e6d2fbe41a8e64c87 --- libs/gui/LayerState.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libs/gui/LayerState.cpp') diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index f848e4ffde..bb7e1a48f7 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -546,9 +546,7 @@ bool InputWindowCommands::merge(const InputWindowCommands& other) { } bool InputWindowCommands::empty() const { - bool empty = true; - empty = focusRequests.empty() && !syncInputWindows; - return empty; + return focusRequests.empty() && !syncInputWindows; } void InputWindowCommands::clear() { -- cgit v1.2.3-59-g8ed1b