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

Commit 88f56b7a authored by Ady Abraham's avatar Ady Abraham Committed by Android (Google) Code Review
Browse files

Merge "VRI: use clearFrameRate when the frame rate is 0" into main

parents f66bd9b0 10e0e706
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -12809,8 +12809,13 @@ public final class ViewRootImpl implements ViewParent,
                                + mFrameRateCompatibility);
                }
                if (sToolkitFrameRateFunctionEnablingReadOnlyFlagValue) {
                    if (preferredFrameRate > 0) {
                        mFrameRateTransaction.setFrameRate(mSurfaceControl, preferredFrameRate,
                            mFrameRateCompatibility).applyAsyncUnsafe();
                                mFrameRateCompatibility);
                    } else {
                        mFrameRateTransaction.clearFrameRate(mSurfaceControl);
                    }
                    mFrameRateTransaction.applyAsyncUnsafe();
                }
                mLastPreferredFrameRate = preferredFrameRate;
            }