diff options
| author | 2021-07-23 01:21:34 +0000 | |
|---|---|---|
| committer | 2021-07-23 01:21:34 +0000 | |
| commit | 374fbaef5554cfa67b8de5a58fd053647abd2666 (patch) | |
| tree | af455afa01e8dfd58cc13cf6cfe5aed9bb6ada8b /libs/gui/SurfaceComposerClient.cpp | |
| parent | 1f8765ba133d4a0ee87063e3714e244148a6ccc9 (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: I7815e2f2c420832087f873adb6d13d126f42cecc
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; |