android_device_xiaomi_sm725.../fod/FodExtension.cpp
Abhishek Aggarwal 4a2f70507b
sm8250-common: fod: Add surfaceflinger extension lib
* And specialize it for xiaomi kona devices

Co-authored-by: dataoutputstream <mb150996@gmail.com>
Change-Id: I440e6d246884fd22044756c6260b3583a1e58a7b
2021-06-08 14:53:18 +02:00

19 lines
332 B
C++

/*
* Copyright (C) 2021 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <compositionengine/FodExtension.h>
uint32_t getFodZOrder(uint32_t z, bool touched) {
if (touched) {
z |= 0x9000000;
}
return z;
}
uint64_t getFodUsageBits(uint64_t usageBits, bool) {
return usageBits;
}