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

Commit 31c88ded authored by Alec Mouri's avatar Alec Mouri Committed by Automerger Merge Worker
Browse files

Update refresh rate callback docs to include DisplayManager caveat. am:...

Update refresh rate callback docs to include DisplayManager caveat. am: 4a33165d am: a43d587f am: c3963387

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12195342

Change-Id: I21dbc450cd954ce60f6d2ff11388ad09cd5ba47c
parents 7de812bc c3963387
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -130,6 +130,13 @@ void AChoreographer_postFrameCallbackDelayed64(AChoreographer* choreographer,
 * This api is thread-safe. Any thread is allowed to register a new refresh
 * rate callback for the choreographer instance.
 *
 * Note that in API level 30, this api is not guaranteed to be atomic with
 * DisplayManager. That is, calling Display#getRefreshRate very soon after
 * a refresh rate callback is invoked may return a stale refresh rate. If any
 * Display properties would be required by this callback, then it is recommended
 * to listen directly to DisplayManager.DisplayListener#onDisplayChanged events
 * instead.
 *
 * Available since API level 30.
 */
void AChoreographer_registerRefreshRateCallback(AChoreographer* choreographer,