summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_layers.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_layers.cpp
parent0772004a58d81182606039e3dca677eda3acb48e (diff)
sdm: mark FOD pressed layer by setting a bit on ZPOS
Change-Id: Ie1503da41766c31c9ec31bbb4282ae9ed62defce
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.cpp')
-rw-r--r--sdm/libs/hwc2/hwc_layers.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp
index ecc18028..60a225dc 100644
--- a/sdm/libs/hwc2/hwc_layers.cpp
+++ b/sdm/libs/hwc2/hwc_layers.cpp
@@ -543,6 +543,13 @@ HWC2::Error HWCLayer::SetLayerVisibleRegion(hwc_region_t visible) {
HWC2::Error HWCLayer::SetLayerZOrder(uint32_t z) {
if (z_ != z) {
+#ifdef FOD_ZPOS
+ if (z & FOD_PRESSED_LAYER_ZORDER) {
+ fod_pressed_ = true;
+ z &= ~FOD_PRESSED_LAYER_ZORDER;
+ }
+#endif
+
geometry_changes_ |= kZOrder;
z_ = z;
}