diff options
author | 2023-09-25 17:02:35 -0700 | |
---|---|---|
committer | 2023-09-25 17:02:35 -0700 | |
commit | d7479506dcbf82d9fc01c512fbe18c8c5d979254 (patch) | |
tree | cd59ce85ecadda60210311688bf3ae402ddca54e /services/surfaceflinger/Layer.cpp | |
parent | 0faad6c29ae2e62abd8b18e3438d891961c15150 (diff) |
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
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index e780a1e8f7..a73c5115b1 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -1352,6 +1352,8 @@ bool Layer::setFrameRateSelectionStrategy(FrameRateSelectionStrategy strategy) { mDrawingState.frameRateSelectionStrategy = strategy; mDrawingState.sequence++; mDrawingState.modified = true; + + updateTreeHasFrameRateVote(); setTransactionFlags(eTransactionNeeded); return true; } |