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

Commit bea39bf1 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Trace Transaction#setFrameTimeline

Bug: 349176607
Test: adb shell setprop persist.wm.debug.sc.tx.log_match_call setFrameTimeline
// reboot device adb shell stop; adb shell start
// adb logcat -s SurfaceControlRegistry
Flag: EXEMPT additional logging
Change-Id: I9e3c14c12cb4f4e325ed1fd0525ceb5667c78fa2
parent 6b4ba15d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4472,6 +4472,10 @@ public final class SurfaceControl implements Parcelable {
                Log.w(TAG, "addTransactionCompletedListener was called but flag is disabled");
                return this;
            }
            if (SurfaceControlRegistry.sCallStackDebuggingEnabled) {
                SurfaceControlRegistry.getProcessInstance().checkCallStackDebugging(
                        "setFrameTimeline", this, null, "vsyncId=" + vsyncId);
            }
            nativeSetFrameTimelineVsync(mNativeObject, vsyncId);
            return this;
        }
@@ -4479,6 +4483,11 @@ public final class SurfaceControl implements Parcelable {
        /** @hide */
        @NonNull
        public Transaction setFrameTimelineVsync(long frameTimelineVsyncId) {
            if (SurfaceControlRegistry.sCallStackDebuggingEnabled) {
                SurfaceControlRegistry.getProcessInstance().checkCallStackDebugging(
                        "setFrameTimelineVsync", this, null, "frameTimelineVsyncId="
                                + frameTimelineVsyncId);
            }
            nativeSetFrameTimelineVsync(mNativeObject, frameTimelineVsyncId);
            return this;
        }