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

Commit 946c5cbd authored by Pascal Mütschard's avatar Pascal Mütschard Committed by Android (Google) Code Review
Browse files

Merge "Add some more detail to the jank API documentation." into main

parents edd193ae 74eda3d4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -210,6 +210,9 @@ public interface AttachedSurfaceControl {
    /**
     * Registers a {@link OnJankDataListener} to receive jank classification data about rendered
     * frames.
     * <p>
     * Use {@link SurfaceControl.OnJankDataListenerRegistration#removeAfter} to unregister the
     * listener.
     *
     * @param executor The executor on which the listener will be invoked.
     * @param listener The listener to add.
+5 −2
Original line number Diff line number Diff line
@@ -598,8 +598,11 @@ public final class SurfaceControl implements Parcelable {
        }

        /**
         * Request a flush of any pending jank classification data. May cause the registered
         * listener to be invoked inband.
         * Request a flush of any pending jank classification data.
         * <p>
         * May cause the registered listener to be invoked inband. Since jank is tracked by the
         * system compositor by surface, flushing the data on one listener, will also cause other
         * listeners on the same surface to receive jank classification data.
         */
        public void flush() {
            nativeFlushJankData(mNativeObject);