Skip to content
Snippets Groups Projects
Commit 9aa54308 authored by Noah Anleitner's avatar Noah Anleitner :speech_balloon:
Browse files

Revert "surfaceflinger: Allow ZOrder override for UDFPS dim layer"

This reverts commit a4dfaaa4.
parent c04b10b6
No related branches found
No related tags found
No related merge requests found
/*
* Copyright 2021-2024 The LineageOS Project
* Copyright 2021-2022 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -20,11 +20,9 @@
#define __UDFPS_EXTENSION__H__
#define UDFPS_BIOMETRIC_PROMPT_LAYER_NAME "BiometricPrompt"
#define UDFPS_DIM_LAYER_NAME "Dim Layer for UDFPS"
#define UDFPS_LAYER_NAME "UdfpsControllerOverlay"
#define UDFPS_TOUCHED_LAYER_NAME "SurfaceView[UdfpsControllerOverlay](BLAST)"
extern uint32_t getUdfpsDimZOrder(uint32_t z);
extern uint32_t getUdfpsZOrder(uint32_t z, bool touched);
extern uint64_t getUdfpsUsageBits(uint64_t usageBits, bool touched);
......
......@@ -463,9 +463,6 @@ void OutputLayer::writeOutputDependentGeometryStateToHWC(HWC2::Layer* hwcLayer,
(strncmp(getLayerFE().getDebugName(), UDFPS_BIOMETRIC_PROMPT_LAYER_NAME,
strlen(UDFPS_BIOMETRIC_PROMPT_LAYER_NAME)) == 0)) {
z_udfps = getUdfpsZOrder(z, false);
} else if (strncmp(getLayerFE().getDebugName(), UDFPS_DIM_LAYER_NAME,
strlen(UDFPS_DIM_LAYER_NAME)) == 0) {
z_udfps = getUdfpsDimZOrder(z);
} else if (strncmp(getLayerFE().getDebugName(), UDFPS_TOUCHED_LAYER_NAME,
strlen(UDFPS_TOUCHED_LAYER_NAME)) == 0) {
z_udfps = getUdfpsZOrder(z, true);
......
/*
* Copyright 2020-2024 The LineageOS Project
* Copyright 2020 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -17,10 +17,6 @@
#ifndef TARGET_PROVIDES_UDFPS_LIB
#include <compositionengine/UdfpsExtension.h>
uint32_t getUdfpsDimZOrder(uint32_t z) {
return z;
}
uint32_t getUdfpsZOrder(uint32_t z, __unused bool touched) {
return z;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment