summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Rachel Lee <rnlee@google.com> 2023-09-25 17:02:35 -0700
committer Rachel Lee <rnlee@google.com> 2023-09-25 17:02:35 -0700
commitd7479506dcbf82d9fc01c512fbe18c8c5d979254 (patch)
treecd59ce85ecadda60210311688bf3ae402ddca54e /services/surfaceflinger/Layer.cpp
parent0faad6c29ae2e62abd8b18e3438d891961c15150 (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.cpp2
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;
}