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

Commit 74eda3d4 authored by Pascal Mütschard's avatar Pascal Mütschard
Browse files

Add some more detail to the jank API documentation.

Bug: b/378832656
Flag: EXEMPT javadoc only
Test: N/A
Change-Id: I22f5ebba260f96058f6133f16292392b09fc55d7
parent 222c7b1e
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);