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

Commit 93562ec6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Trace Transaction#setFrameTimeline" into main

parents d449c1a6 bea39bf1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4508,6 +4508,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;
        }
@@ -4515,6 +4519,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;
        }