Loading packages/SystemUI/shared/src/com/android/systemui/shared/tracing/FrameProtoTracer.java +4 −2 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ public class FrameProtoTracer<P, S extends P, T extends P, R> private final TraceBuffer<P, S, T> mBuffer; private final File mTraceFile; private final ProtoTraceParams<P, S, T, R> mParams; private final Choreographer mChoreographer; private Choreographer mChoreographer; private final Queue<T> mPool = new LinkedList<>(); private final ArrayList<ProtoTraceable<R>> mTraceables = new ArrayList<>(); private final ArrayList<ProtoTraceable<R>> mTmpTraceables = new ArrayList<>(); Loading Loading @@ -94,7 +94,6 @@ public class FrameProtoTracer<P, S extends P, T extends P, R> } }); mTraceFile = params.getTraceFile(); mChoreographer = Choreographer.getMainThreadInstance(); } public void start() { Loading Loading @@ -140,6 +139,9 @@ public class FrameProtoTracer<P, S extends P, T extends P, R> } // Schedule an update on the next frame if (mChoreographer == null) { mChoreographer = Choreographer.getMainThreadInstance(); } mChoreographer.postFrameCallback(this); mFrameScheduled = true; } Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/tracing/FrameProtoTracer.java +4 −2 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ public class FrameProtoTracer<P, S extends P, T extends P, R> private final TraceBuffer<P, S, T> mBuffer; private final File mTraceFile; private final ProtoTraceParams<P, S, T, R> mParams; private final Choreographer mChoreographer; private Choreographer mChoreographer; private final Queue<T> mPool = new LinkedList<>(); private final ArrayList<ProtoTraceable<R>> mTraceables = new ArrayList<>(); private final ArrayList<ProtoTraceable<R>> mTmpTraceables = new ArrayList<>(); Loading Loading @@ -94,7 +94,6 @@ public class FrameProtoTracer<P, S extends P, T extends P, R> } }); mTraceFile = params.getTraceFile(); mChoreographer = Choreographer.getMainThreadInstance(); } public void start() { Loading Loading @@ -140,6 +139,9 @@ public class FrameProtoTracer<P, S extends P, T extends P, R> } // Schedule an update on the next frame if (mChoreographer == null) { mChoreographer = Choreographer.getMainThreadInstance(); } mChoreographer.postFrameCallback(this); mFrameScheduled = true; } Loading