Loading libs/gui/LayerState.cpp +0 −21 Original line number Diff line number Diff line Loading @@ -443,39 +443,18 @@ void layer_state_t::merge(const layer_state_t& other) { // ------------------------------- InputWindowCommands ---------------------------------------- void InputWindowCommands::merge(const InputWindowCommands& other) { transferTouchFocusCommands .insert(transferTouchFocusCommands.end(), std::make_move_iterator(other.transferTouchFocusCommands.begin()), std::make_move_iterator(other.transferTouchFocusCommands.end())); syncInputWindows |= other.syncInputWindows; } void InputWindowCommands::clear() { transferTouchFocusCommands.clear(); syncInputWindows = false; } void InputWindowCommands::write(Parcel& output) const { output.writeUint32(static_cast<uint32_t>(transferTouchFocusCommands.size())); for (const auto& transferTouchFocusCommand : transferTouchFocusCommands) { output.writeStrongBinder(transferTouchFocusCommand.fromToken); output.writeStrongBinder(transferTouchFocusCommand.toToken); } output.writeBool(syncInputWindows); } void InputWindowCommands::read(const Parcel& input) { size_t count = input.readUint32(); transferTouchFocusCommands.clear(); for (size_t i = 0; i < count; i++) { TransferTouchFocusCommand transferTouchFocusCommand; transferTouchFocusCommand.fromToken = input.readStrongBinder(); transferTouchFocusCommand.toToken = input.readStrongBinder(); transferTouchFocusCommands.emplace_back(transferTouchFocusCommand); } syncInputWindows = input.readBool(); } Loading libs/gui/SurfaceComposerClient.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -1290,15 +1290,6 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setInput return *this; } SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::transferTouchFocus( const sp<IBinder>& fromToken, const sp<IBinder>& toToken) { InputWindowCommands::TransferTouchFocusCommand transferTouchFocusCommand; transferTouchFocusCommand.fromToken = fromToken; transferTouchFocusCommand.toToken = toToken; mInputWindowCommands.transferTouchFocusCommands.emplace_back(transferTouchFocusCommand); return *this; } SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::syncInputWindows() { mInputWindowCommands.syncInputWindows = true; return *this; Loading libs/gui/include/gui/LayerState.h +0 −6 Original line number Diff line number Diff line Loading @@ -271,12 +271,6 @@ struct DisplayState { }; struct InputWindowCommands { struct TransferTouchFocusCommand { sp<IBinder> fromToken; sp<IBinder> toToken; }; std::vector<TransferTouchFocusCommand> transferTouchFocusCommands; bool syncInputWindows{false}; void merge(const InputWindowCommands& other); Loading libs/gui/include/gui/SurfaceComposerClient.h +0 −1 Original line number Diff line number Diff line Loading @@ -507,7 +507,6 @@ public: #ifndef NO_INPUT Transaction& setInputWindowInfo(const sp<SurfaceControl>& sc, const InputWindowInfo& info); Transaction& transferTouchFocus(const sp<IBinder>& fromToken, const sp<IBinder>& toToken); Transaction& syncInputWindows(); #endif Loading services/surfaceflinger/SurfaceFlinger.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -3745,10 +3745,6 @@ uint32_t SurfaceFlinger::setClientStateLocked( uint32_t SurfaceFlinger::addInputWindowCommands(const InputWindowCommands& inputWindowCommands) { uint32_t flags = 0; if (!inputWindowCommands.transferTouchFocusCommands.empty()) { flags |= eTraversalNeeded; } if (inputWindowCommands.syncInputWindows) { flags |= eTraversalNeeded; } Loading Loading
libs/gui/LayerState.cpp +0 −21 Original line number Diff line number Diff line Loading @@ -443,39 +443,18 @@ void layer_state_t::merge(const layer_state_t& other) { // ------------------------------- InputWindowCommands ---------------------------------------- void InputWindowCommands::merge(const InputWindowCommands& other) { transferTouchFocusCommands .insert(transferTouchFocusCommands.end(), std::make_move_iterator(other.transferTouchFocusCommands.begin()), std::make_move_iterator(other.transferTouchFocusCommands.end())); syncInputWindows |= other.syncInputWindows; } void InputWindowCommands::clear() { transferTouchFocusCommands.clear(); syncInputWindows = false; } void InputWindowCommands::write(Parcel& output) const { output.writeUint32(static_cast<uint32_t>(transferTouchFocusCommands.size())); for (const auto& transferTouchFocusCommand : transferTouchFocusCommands) { output.writeStrongBinder(transferTouchFocusCommand.fromToken); output.writeStrongBinder(transferTouchFocusCommand.toToken); } output.writeBool(syncInputWindows); } void InputWindowCommands::read(const Parcel& input) { size_t count = input.readUint32(); transferTouchFocusCommands.clear(); for (size_t i = 0; i < count; i++) { TransferTouchFocusCommand transferTouchFocusCommand; transferTouchFocusCommand.fromToken = input.readStrongBinder(); transferTouchFocusCommand.toToken = input.readStrongBinder(); transferTouchFocusCommands.emplace_back(transferTouchFocusCommand); } syncInputWindows = input.readBool(); } Loading
libs/gui/SurfaceComposerClient.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -1290,15 +1290,6 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setInput return *this; } SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::transferTouchFocus( const sp<IBinder>& fromToken, const sp<IBinder>& toToken) { InputWindowCommands::TransferTouchFocusCommand transferTouchFocusCommand; transferTouchFocusCommand.fromToken = fromToken; transferTouchFocusCommand.toToken = toToken; mInputWindowCommands.transferTouchFocusCommands.emplace_back(transferTouchFocusCommand); return *this; } SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::syncInputWindows() { mInputWindowCommands.syncInputWindows = true; return *this; Loading
libs/gui/include/gui/LayerState.h +0 −6 Original line number Diff line number Diff line Loading @@ -271,12 +271,6 @@ struct DisplayState { }; struct InputWindowCommands { struct TransferTouchFocusCommand { sp<IBinder> fromToken; sp<IBinder> toToken; }; std::vector<TransferTouchFocusCommand> transferTouchFocusCommands; bool syncInputWindows{false}; void merge(const InputWindowCommands& other); Loading
libs/gui/include/gui/SurfaceComposerClient.h +0 −1 Original line number Diff line number Diff line Loading @@ -507,7 +507,6 @@ public: #ifndef NO_INPUT Transaction& setInputWindowInfo(const sp<SurfaceControl>& sc, const InputWindowInfo& info); Transaction& transferTouchFocus(const sp<IBinder>& fromToken, const sp<IBinder>& toToken); Transaction& syncInputWindows(); #endif Loading
services/surfaceflinger/SurfaceFlinger.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -3745,10 +3745,6 @@ uint32_t SurfaceFlinger::setClientStateLocked( uint32_t SurfaceFlinger::addInputWindowCommands(const InputWindowCommands& inputWindowCommands) { uint32_t flags = 0; if (!inputWindowCommands.transferTouchFocusCommands.empty()) { flags |= eTraversalNeeded; } if (inputWindowCommands.syncInputWindows) { flags |= eTraversalNeeded; } Loading