summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Evan Rosky <erosky@google.com> 2021-06-01 21:40:00 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2021-06-01 21:40:00 +0000
commit1da402ebd896c569bada7044fac4b66abccb7997 (patch)
tree0a9b5c71cd390f6c64d417426ac9f66b31f396ac /libs/gui/SurfaceComposerClient.cpp
parent15bd531aa1c7be0cbb0a4c59f6d1b58fa7c17fb5 (diff)
parent61309faf6c7afa3639237c24ce4723d1958ace93 (diff)
Merge "Inform SurfaceFlinger about displays which receive input" into sc-v2-dev am: 61309faf6c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/14669171 Change-Id: I17715b3a3e050f7b02fc11335f38a4624afd20f3
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r--libs/gui/SurfaceComposerClient.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp
index 371454a3de..c32f4fa4d8 100644
--- a/libs/gui/SurfaceComposerClient.cpp
+++ b/libs/gui/SurfaceComposerClient.cpp
@@ -1731,6 +1731,12 @@ void SurfaceComposerClient::Transaction::setDisplayLayerStack(const sp<IBinder>&
s.what |= DisplayState::eLayerStackChanged;
}
+void SurfaceComposerClient::Transaction::setDisplayFlags(const sp<IBinder>& token, uint32_t flags) {
+ DisplayState& s(getDisplayState(token));
+ s.flags = flags;
+ s.what |= DisplayState::eFlagsChanged;
+}
+
void SurfaceComposerClient::Transaction::setDisplayProjection(const sp<IBinder>& token,
ui::Rotation orientation,
const Rect& layerStackRect,