[sf-newfe] don't skip composite when trusted presentation listener is updated
New frontend tracks layer change flags and then chooses to composite based
on the changes. Trusted presentation listener is still handled by legacy
layer so track the changes there as well.
Test: atest android.view.surfacecontrol.cts.TrustedPresentationCallbackTest
Fixes: 296935994
Change-Id: I49281a9fd17697daf1f7e95c056a858e7fc93f5b
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index e94aa72..522c2fe 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2293,7 +2293,7 @@
bool newDataLatched = false;
if (!mLegacyFrontEndEnabled) {
ATRACE_NAME("DisplayCallbackAndStatsUpdates");
- applyTransactions(update.transactions, vsyncId);
+ mustComposite |= applyTransactions(update.transactions, vsyncId);
traverseLegacyLayers([&](Layer* layer) { layer->commitTransaction(); });
const nsecs_t latchTime = systemTime();
bool unused = false;