fingerprint: Add support for TARGET_USES_FOD_ZPOS

Change-Id: Iaf79d5393169b986197be058ac2166d2e448dfa0
This commit is contained in:
LuK1337
2022-02-13 20:09:15 +01:00
parent d0756d5ffb
commit 3dacefed22
2 changed files with 8 additions and 0 deletions

View File

@@ -37,4 +37,7 @@ cc_library_static {
include_dirs: [
"frameworks/native/services/surfaceflinger/CompositionEngine/include",
],
header_libs: [
"generated_kernel_headers",
],
}

View File

@@ -15,9 +15,14 @@
*/
#include <compositionengine/UdfpsExtension.h>
#include <drm/sde_drm.h>
uint32_t getUdfpsZOrder(uint32_t z, bool touched) {
#ifdef FOD_PRESSED_LAYER_ZORDER
return touched ? z | FOD_PRESSED_LAYER_ZORDER : z;
#else
return touched ? 0x41000033 : z;
#endif
}
uint64_t getUdfpsUsageBits(uint64_t usageBits, bool /*touched*/) {