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

Commit 6874dc63 authored by Pascal Mütschard's avatar Pascal Mütschard
Browse files

Mark SfVsyncFrameCallbackProvider as deprecated.

Also marks the underlying Choreographer#getSfInstance as deprecated.

Bug: b/222698397
Test: n/a
Flag: EXEMPT only adding deprecation warning
Change-Id: I20e253f10458ebc985c622fb9555f26e7eda38ce
parent 24109ce0
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -372,8 +372,10 @@ public final class Choreographer {


    /**
    /**
     * @hide
     * @hide
     * @deprecated Use vsync IDs with the regular Choreographer instead.
     */
     */
    @UnsupportedAppUsage
    @UnsupportedAppUsage
    @Deprecated
    public static Choreographer getSfInstance() {
    public static Choreographer getSfInstance() {
        return sSfThreadInstance.get();
        return sSfThreadInstance.get();
    }
    }
+3 −1
Original line number Original line Diff line number Diff line
@@ -23,8 +23,10 @@ import android.view.Choreographer;
 * Provider of timing pulse that uses SurfaceFlinger Vsync Choreographer for frame callbacks.
 * Provider of timing pulse that uses SurfaceFlinger Vsync Choreographer for frame callbacks.
 *
 *
 * @hide
 * @hide
 * @deprecated See b/222698397 - use vsync IDs instead.
 */
 */
// TODO(b/222698397): remove getSfInstance/this class usage and use vsyncId for transactions
// TODO(b/222698397): remove getSfInstance/this class usage and use vsyncId for transactions
@Deprecated
public final class SfVsyncFrameCallbackProvider implements AnimationFrameCallbackProvider {
public final class SfVsyncFrameCallbackProvider implements AnimationFrameCallbackProvider {


    private final Choreographer mChoreographer;
    private final Choreographer mChoreographer;