diff options
| author | 2021-11-18 15:35:22 -0800 | |
|---|---|---|
| committer | 2021-11-23 16:41:19 -0800 | |
| commit | 42a27b5657975485a72033736f37bfe6de0e21a8 (patch) | |
| tree | 3dc390b837a276e8691772a14fee106b96d639e9 /libs/gui/LayerState.cpp | |
| parent | 34eb9ca577d78524b992d2af367e23ce89a9f034 (diff) | |
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
Diffstat (limited to 'libs/gui/LayerState.cpp')
| -rw-r--r-- | libs/gui/LayerState.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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() { |