Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21348562 authored by Sally Qi's avatar Sally Qi
Browse files

Treat blurs as expensive rendering

It's part of revert commit Iff92fc56c43aefdb4fd978e837969f8ddc9c24f4

Bug: 399853723
Test: Manual
Flag: EXEMPT bugfix

Change-Id: I10b783469581297337f479134f6efd446f1f2106
parent d15c73e4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {