56 lines
2.6 KiB
Diff
56 lines
2.6 KiB
Diff
From 7c185420e60e45008f9308b676923e45a56f8505 Mon Sep 17 00:00:00 2001
|
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
Date: Wed, 11 Jan 2023 11:59:05 +0000
|
|
Subject: [PATCH 1/2] Revert "CompositionEngine: Request device composition for
|
|
the Udfps touched layer"
|
|
|
|
This reverts commit c2a0b2db8e69b403478379351d4aabf751829c9c.
|
|
---
|
|
.../CompositionEngine/src/Output.cpp | 16 +---------------
|
|
1 file changed, 1 insertion(+), 15 deletions(-)
|
|
|
|
diff --git a/services/surfaceflinger/CompositionEngine/src/Output.cpp b/services/surfaceflinger/CompositionEngine/src/Output.cpp
|
|
index d17ddd9df6..b724daa8ce 100644
|
|
--- a/services/surfaceflinger/CompositionEngine/src/Output.cpp
|
|
+++ b/services/surfaceflinger/CompositionEngine/src/Output.cpp
|
|
@@ -22,7 +22,6 @@
|
|
#include <compositionengine/LayerFE.h>
|
|
#include <compositionengine/LayerFECompositionState.h>
|
|
#include <compositionengine/RenderSurface.h>
|
|
-#include <compositionengine/UdfpsExtension.h>
|
|
#include <compositionengine/impl/HwcAsyncWorker.h>
|
|
#include <compositionengine/impl/Output.h>
|
|
#include <compositionengine/impl/OutputCompositionState.h>
|
|
@@ -836,10 +835,7 @@ void Output::writeCompositionState(const compositionengine::CompositionRefreshAr
|
|
|
|
compositionengine::OutputLayer* Output::findLayerRequestingBackgroundComposition() const {
|
|
compositionengine::OutputLayer* layerRequestingBgComposition = nullptr;
|
|
- for (size_t i = 0; i < getOutputLayerCount(); i++) {
|
|
- compositionengine::OutputLayer* layer = getOutputLayerOrderedByZByIndex(i);
|
|
- compositionengine::OutputLayer* nextLayer = getOutputLayerOrderedByZByIndex(i + 1);
|
|
-
|
|
+ for (auto* layer : getOutputLayersOrderedByZ()) {
|
|
auto* compState = layer->getLayerFE().getCompositionState();
|
|
|
|
// If any layer has a sideband stream, we will disable blurs. In that case, we don't
|
|
@@ -853,16 +849,6 @@ compositionengine::OutputLayer* Output::findLayerRequestingBackgroundComposition
|
|
if (compState->backgroundBlurRadius > 0 || compState->blurRegions.size() > 0) {
|
|
layerRequestingBgComposition = layer;
|
|
}
|
|
-
|
|
- // If the next layer is the Udfps touched layer, enable client composition for it
|
|
- // because that somehow leads to the Udfps touched layer getting device composition
|
|
- // consistently.
|
|
- if ((nextLayer != nullptr && layerRequestingBgComposition == nullptr) &&
|
|
- (strncmp(nextLayer->getLayerFE().getDebugName(), UDFPS_TOUCHED_LAYER_NAME,
|
|
- strlen(UDFPS_TOUCHED_LAYER_NAME)) == 0)) {
|
|
- layerRequestingBgComposition = layer;
|
|
- break;
|
|
- }
|
|
}
|
|
return layerRequestingBgComposition;
|
|
}
|
|
--
|
|
2.25.1
|
|
|