mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 11:27:17 +01:00
50 lines
2.6 KiB
Java
50 lines
2.6 KiB
Java
package androidx.compose.ui.platform;
|
|
|
|
import android.os.Handler;
|
|
import android.view.Choreographer;
|
|
import java.util.List;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u001d\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u00012\u00020\u0002J\b\u0010\u0003\u001a\u00020\u0004H\u0016J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u0007H\u0016¨\u0006\b"}, d2 = {"androidx/compose/ui/platform/AndroidUiDispatcher$dispatchCallback$1", "Landroid/view/Choreographer$FrameCallback;", "Ljava/lang/Runnable;", "run", "", "doFrame", "frameTimeNanos", "", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nAndroidUiDispatcher.android.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AndroidUiDispatcher.android.kt\nandroidx/compose/ui/platform/AndroidUiDispatcher$dispatchCallback$1\n+ 2 Synchronization.android.kt\nandroidx/compose/ui/platform/Synchronization_androidKt\n*L\n1#1,193:1\n32#2:194\n*S KotlinDebug\n*F\n+ 1 AndroidUiDispatcher.android.kt\nandroidx/compose/ui/platform/AndroidUiDispatcher$dispatchCallback$1\n*L\n58#1:194\n*E\n"})
|
|
/* loaded from: classes13.dex */
|
|
public final class AndroidUiDispatcher$dispatchCallback$1 implements Choreographer.FrameCallback, Runnable {
|
|
final /* synthetic */ AndroidUiDispatcher this$0;
|
|
|
|
public AndroidUiDispatcher$dispatchCallback$1(AndroidUiDispatcher androidUiDispatcher) {
|
|
this.this$0 = androidUiDispatcher;
|
|
}
|
|
|
|
@Override // android.view.Choreographer.FrameCallback
|
|
public void doFrame(long frameTimeNanos) {
|
|
Handler handler;
|
|
handler = this.this$0.handler;
|
|
handler.removeCallbacks(this);
|
|
this.this$0.performTrampolineDispatch();
|
|
this.this$0.performFrameDispatch(frameTimeNanos);
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
Object obj;
|
|
List list;
|
|
this.this$0.performTrampolineDispatch();
|
|
obj = this.this$0.lock;
|
|
AndroidUiDispatcher androidUiDispatcher = this.this$0;
|
|
synchronized (obj) {
|
|
try {
|
|
list = androidUiDispatcher.toRunOnFrame;
|
|
if (list.isEmpty()) {
|
|
androidUiDispatcher.getChoreographer().removeFrameCallback(this);
|
|
androidUiDispatcher.scheduledFrameDispatch = false;
|
|
}
|
|
Unit unit = Unit.INSTANCE;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
}
|