Skip to content

Commit 2ca4ad9

Browse files
arter97tejas101k
authored andcommitted
SF: Scheduler: touch boost whenever possible
With the previous commit entering idle aggressively, it is important that touch boost works well. Since there are valid cases where we would want touch boost to work when there are no layers detected (e.g., notification panel pull down if it was not accounted for during the initial vote type set), change touch boost to work regardless of layer's status. Change-Id: I0a125cf9027440de205fa4ca611657b70b8a088f Signed-off-by: Juhyung Park <qkrwngud825@gmail.com> Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
1 parent f252e1a commit 2ca4ad9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/surfaceflinger/Scheduler/RefreshRateSelector.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,8 @@ auto RefreshRateSelector::getRankedFrameRatesLocked(const std::vector<LayerRequi
605605
const auto anchorGroup =
606606
seamedFocusedLayers > 0 ? activeMode.getGroup() : defaultMode->getGroup();
607607

608-
// Consider the touch event if there are no Explicit* layers. Otherwise wait until after we've
609-
// selected a refresh rate to see if we should apply touch boost.
610-
if (signals.touch && !hasExplicitVoteLayers) {
608+
// Touch boost whenever possible as we opportunistically enter idle aggressively
609+
if (signals.touch) {
611610
ALOGV("Touch Boost");
612611
const auto ranking = rankFrameRates(anchorGroup, RefreshRateOrder::Descending);
613612
SFTRACE_FORMAT_INSTANT("%s (Touch Boost)",

0 commit comments

Comments
 (0)