Propagate tree on setting selection strategy
Otherwise there is an order dependency on calling setFrameRate,
setFrameRateCategory, and setFrameRateSelectionStrategy.
Bug: 297418260
Test: atest FrameRateSelectionStrategyTest
Change-Id: I9fb345a1632c5a18fe445d1637b6bb22984fe24e
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index e780a1e..a73c511 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -1352,6 +1352,8 @@
mDrawingState.frameRateSelectionStrategy = strategy;
mDrawingState.sequence++;
mDrawingState.modified = true;
+
+ updateTreeHasFrameRateVote();
setTransactionFlags(eTransactionNeeded);
return true;
}