diff options
author | 2021-07-28 14:46:21 +0000 | |
---|---|---|
committer | 2021-07-28 14:46:21 +0000 | |
commit | 4dea052f15cbce8b34efb038c4277eab32519f87 (patch) | |
tree | d7d36ff3c4e92f08b9e039eebe733440195b7101 /libs/gui/SurfaceComposerClient.cpp | |
parent | ee3c8f58e92c8082f4cfa707fb39aace27b0b1a6 (diff) | |
parent | 5eaa7c313627d872ced846dfd0c83b128a389914 (diff) |
Merge "Add mechanism for a task's windows to be trusted overlays (SF)" into sc-dev am: 5eaa7c3136
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15150900
Change-Id: I8578a717172c8245da2c8352cbec14f4b9729628
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index c52c644eb7..828b6a5d36 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -1652,6 +1652,19 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setAutoR return *this; } +SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setTrustedOverlay( + const sp<SurfaceControl>& sc, bool isTrustedOverlay) { + layer_state_t* s = getLayerState(sc); + if (!s) { + mStatus = BAD_INDEX; + return *this; + } + + s->what |= layer_state_t::eTrustedOverlayChanged; + s->isTrustedOverlay = isTrustedOverlay; + return *this; +} + SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setApplyToken( const sp<IBinder>& applyToken) { mApplyToken = applyToken; |