Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6afe0049 authored by Shane's avatar Shane
Browse files

[VRR] Remove intermittentUpdateState check in setCategoryFromCategoryCounts

Since we no longer apply intermittent update in ViewRootImpl, remove the check in setCategoryFromCategoryCounts to ensure it has no effect.

Flag: EXEMPT bugfix
Test: atest ViewFrameRateTest / atest ViewRootImplTest
Bug: 352976358
Change-Id: Iae6bff15189289ed2e68b02d738a2ad1a0ed13bb
parent e49f5aba
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -12882,11 +12882,6 @@ public final class ViewRootImpl implements ViewParent,
                    mFrameRateCategoryHighCount = FRAME_RATE_CATEGORY_COUNT;
        }
        // If it's currently an intermittent update,
        // we should keep mPreferredFrameRateCategory as NORMAL
        if (intermittentUpdateState() == INTERMITTENT_STATE_INTERMITTENT) {
            return;
        }
        if (mFrameRateCategoryHighCount > 0) {
            mPreferredFrameRateCategory = FRAME_RATE_CATEGORY_HIGH;