2022-03-01 22:55:40 -05:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2022 The LineageOS Project
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <compositionengine/UdfpsExtension.h>
|
2022-02-15 03:14:16 -05:00
|
|
|
|
|
|
|
#if __has_include(<display/drm/sde_drm.h>)
|
|
|
|
#include <display/drm/sde_drm.h>
|
|
|
|
#elif __has_include(<drm/sde_drm.h>)
|
2022-03-01 22:55:40 -05:00
|
|
|
#include <drm/sde_drm.h>
|
2022-02-15 03:14:16 -05:00
|
|
|
#endif
|
2022-03-01 22:55:40 -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 /* touched */) {
|
|
|
|
return usageBits;
|
|
|
|
}
|