Skip to content

Commit cb144c7

Browse files
Treehugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "Treat blurs as expensive rendering" into main
2 parents 8de881e + 2134856 commit cb144c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • services/surfaceflinger/CompositionEngine/src

services/surfaceflinger/CompositionEngine/src/Output.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,8 @@ std::optional<base::unique_fd> Output::composeSurfaces(
13891389
// or complex GPU shaders and it's expensive. We boost the GPU frequency so that
13901390
// GPU composition can finish in time. We must reset GPU frequency afterwards,
13911391
// because high frequency consumes extra battery.
1392-
const bool expensiveRenderingExpected =
1392+
const bool expensiveBlurs = mLayerRequestingBackgroundBlur != nullptr;
1393+
const bool expensiveRenderingExpected = expensiveBlurs ||
13931394
std::any_of(clientCompositionLayers.begin(), clientCompositionLayers.end(),
13941395
[outputDataspace =
13951396
clientCompositionDisplay.outputDataspace](const auto& layer) {

0 commit comments

Comments
 (0)