diff options
author | 2021-07-23 01:04:19 +0000 | |
---|---|---|
committer | 2021-07-23 01:04:19 +0000 | |
commit | 5eaa7c313627d872ced846dfd0c83b128a389914 (patch) | |
tree | cf0912e84cb61316a2fef16af46f5cf5f880275f /libs/gui/SurfaceComposerClient.cpp | |
parent | ae7324cddcfaa22957317f8b85fb1b48c83ee92a (diff) | |
parent | a30f7c99749f48d3c13c3c1ac96fc54a80ba1295 (diff) |
Merge "Add mechanism for a task's windows to be trusted overlays (SF)" into sc-dev
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 6ea070ea2f..96da8efd19 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -1656,6 +1656,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; |