SF: partially revert df59f4744c0672cc69dad72b230a757c1e4be116
Avoid a composition cycle when the FrameRate votes updates,
but keep the old behavior for all other cases.
Bug: 339759346
Change-Id: Ic0696ddeee6ed10f1e6efcc0dbe9589d638900cd
Test: android.platform.test.scenario.gmail.OpenCloseComposeEmailMicrobenchmark#testOpenCloseComposeEmail
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 28d8018..e2af5cf 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2447,8 +2447,8 @@
}
outTransactionsAreEmpty = mLayerLifecycleManager.getGlobalChanges().get() == 0;
if (FlagManager::getInstance().vrr_bugfix_24q4()) {
- mustComposite |= mLayerLifecycleManager.getGlobalChanges().test(
- frontend::RequestedLayerState::Changes::RequiresComposition);
+ mustComposite |= mLayerLifecycleManager.getGlobalChanges().any(
+ frontend::RequestedLayerState::kMustComposite);
} else {
mustComposite |= mLayerLifecycleManager.getGlobalChanges().get() != 0;
}