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

Commit cb144c76 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Treat blurs as expensive rendering" into main

parents 8de881eb 21348562
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) {