2022-02-10 15:04:32 -05:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2022 The LineageOS Project
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <compositionengine/UdfpsExtension.h>
|
|
|
|
#include <display/drm/sde_drm.h>
|
|
|
|
|
2024-11-12 05:18:24 -05:00
|
|
|
uint32_t getUdfpsDimZOrder(uint32_t z) {
|
|
|
|
return z;
|
|
|
|
}
|
|
|
|
|
2022-02-10 15:04:32 -05:00
|
|
|
uint32_t getUdfpsZOrder(uint32_t z, bool touched) {
|
|
|
|
if (touched) {
|
|
|
|
z |= FOD_PRESSED_LAYER_ZORDER;
|
|
|
|
}
|
|
|
|
return z;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint64_t getUdfpsUsageBits(uint64_t usageBits, bool) {
|
|
|
|
return usageBits;
|
|
|
|
}
|