diff options
author | 2025-03-05 15:59:11 -0800 | |
---|---|---|
committer | 2025-03-07 11:03:24 -0800 | |
commit | 213485626be1a741421d4c467164b98856eded76 (patch) | |
tree | 16faa43404cc28dbc35cdcd79bca5c19c1d6e9c2 | |
parent | d15c73e43ae77abec3e2c32b392a735e311f59ac (diff) |
Treat blurs as expensive rendering
It's part of revert commit Iff92fc56c43aefdb4fd978e837969f8ddc9c24f4
Bug: 399853723
Test: Manual
Flag: EXEMPT bugfix
Change-Id: I10b783469581297337f479134f6efd446f1f2106
-rw-r--r-- | services/surfaceflinger/CompositionEngine/src/Output.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/CompositionEngine/src/Output.cpp b/services/surfaceflinger/CompositionEngine/src/Output.cpp index de1d13a8d1..b30cf20121 100644 --- a/services/surfaceflinger/CompositionEngine/src/Output.cpp +++ b/services/surfaceflinger/CompositionEngine/src/Output.cpp @@ -1389,7 +1389,8 @@ std::optional<base::unique_fd> Output::composeSurfaces( // or complex GPU shaders and it's expensive. We boost the GPU frequency so that // GPU composition can finish in time. We must reset GPU frequency afterwards, // because high frequency consumes extra battery. - const bool expensiveRenderingExpected = + const bool expensiveBlurs = mLayerRequestingBackgroundBlur != nullptr; + const bool expensiveRenderingExpected = expensiveBlurs || std::any_of(clientCompositionLayers.begin(), clientCompositionLayers.end(), [outputDataspace = clientCompositionDisplay.outputDataspace](const auto& layer) { |