summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_display.cpp
diff options
context:
space:
mode:
authorDemon000 <demonsingur@gmail.com>2020-05-21 01:40:04 +0300
committerArian <arian.kulmer@web.de>2021-11-30 18:32:12 +0100
commit67aa63a9a78bfe7ee2f10e78c986ed94fb8c0139 (patch)
tree3c161dfda543f7c0c31b790aaf37517ac400c8f9 /sdm/libs/hwc2/hwc_display.cpp
parent0772004a58d81182606039e3dca677eda3acb48e (diff)
sdm: mark FOD pressed layer by setting a bit on ZPOS
Change-Id: Ie1503da41766c31c9ec31bbb4282ae9ed62defce
Diffstat (limited to 'sdm/libs/hwc2/hwc_display.cpp')
-rw-r--r--sdm/libs/hwc2/hwc_display.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_display.cpp b/sdm/libs/hwc2/hwc_display.cpp
index 937c0a78..51d8dae5 100644
--- a/sdm/libs/hwc2/hwc_display.cpp
+++ b/sdm/libs/hwc2/hwc_display.cpp
@@ -675,6 +675,12 @@ void HWCDisplay::BuildLayerStack() {
layer->flags.solid_fill = true;
}
+#ifdef FOD_ZPOS
+ if (hwc_layer->IsFodPressed()) {
+ layer->flags.fod_pressed = true;
+ }
+#endif
+
if (!hwc_layer->IsDataSpaceSupported()) {
layer->flags.skip = true;
}