diff options
author | 2022-02-07 23:43:51 +0000 | |
---|---|---|
committer | 2022-02-07 23:43:51 +0000 | |
commit | d5a65ea539a2bb939da68780ee6ed4ab35ae73fb (patch) | |
tree | 9be5140a33784b0714a4ed62f95e266b8a0f9960 /libs/gui/SurfaceComposerClient.cpp | |
parent | 9c097670cdcc10f892eefa44a85cbc71edecbcb8 (diff) | |
parent | 77daf700ce9707d147d2cc3075d6e6bbc1a4280a (diff) |
SurfaceControl: Add setDropInputMode api am: 77daf700ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/16740114
Change-Id: I7ab2f02c81569e5ae72fff8a2e1f3ea8fccd8a2e
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 96da8efd19..6ffd25d227 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -1669,6 +1669,21 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setTrust return *this; } +SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setDropInputMode( + const sp<SurfaceControl>& sc, gui::DropInputMode mode) { + layer_state_t* s = getLayerState(sc); + if (!s) { + mStatus = BAD_INDEX; + return *this; + } + + s->what |= layer_state_t::eDropInputModeChanged; + s->dropInputMode = mode; + + registerSurfaceControlForCallback(sc); + return *this; +} + SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setApplyToken( const sp<IBinder>& applyToken) { mApplyToken = applyToken; |