sm7250-common: fod: Use FOD_PRESSED_LAYER_ZORDER instead of magic number

Change-Id: I62205bb29c610baaabd1647826f5285c4f639ae7
This commit is contained in:
Vincent Vidal 2020-08-18 14:42:49 +02:00 committed by xSylla
parent 29765ee81b
commit 423e16f202
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -5,10 +5,11 @@
*/
#include <compositionengine/FodExtension.h>
#include <drm/sde_drm.h>
uint32_t getFodZOrder(uint32_t z, bool touched) {
if (touched) {
z |= 0x9000000;
z |= FOD_PRESSED_LAYER_ZORDER;
}
return z;
}