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

Commit cb4c7d05 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Added logging for tracking implicit RR registration" into main

parents 7c804f20 83e0cdf0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -475,6 +475,7 @@ public final class DisplayManagerGlobal {
        synchronized (mLock) {
            if (!mShouldImplicitlyRegisterRrChanges) {
                mShouldImplicitlyRegisterRrChanges = true;
                Slog.i(TAG, "Implicitly registering for refresh rate");
                updateCallbackIfNeededLocked();
            }
        }
@@ -1759,6 +1760,9 @@ public final class DisplayManagerGlobal {
        synchronized (mLock) {
            mDispatchNativeCallbacks = true;
            if (Flags.delayImplicitRrRegistrationUntilRrAccessed()) {
                if (!mShouldImplicitlyRegisterRrChanges) {
                    Slog.i(TAG, "Choreographer implicitly registered for the refresh rate.");
                }
                mShouldImplicitlyRegisterRrChanges = true;
            }
            registerCallbackIfNeededLocked();