diff options
| author | 2022-02-07 23:57:50 +0000 | |
|---|---|---|
| committer | 2022-02-07 23:57:50 +0000 | |
| commit | cb73663112ba37463cba3c36a4af40cf301bdf2b (patch) | |
| tree | e0434f70fdccbc62aff0a0d2922d941809b3b54d /libs/gui/SurfaceComposerClient.cpp | |
| parent | d2a1d62d372eb9dac4c67957827e855823229c90 (diff) | |
| parent | d5a65ea539a2bb939da68780ee6ed4ab35ae73fb (diff) | |
SurfaceControl: Add setDropInputMode api am: 77daf700ce am: d5a65ea539
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/16740114
Change-Id: Ie0a2a21ba09dbdae4290c77aa1d721104f6873b7
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 1377284f92..d8c6519b0d 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -1673,6 +1673,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; |