package io.flutter.view;

import android.view.Choreographer;
import com.google.android.gms.internal.ads.i70;
import io.flutter.embedding.engine.FlutterJNI;

/* JADX INFO: loaded from: classes.dex */
public final class r implements Choreographer.FrameCallback {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public long f28431a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ i70 f28432b;

    public r(i70 i70Var, long j10) {
        this.f28432b = i70Var;
        this.f28431a = j10;
    }

    @Override // android.view.Choreographer.FrameCallback
    public final void doFrame(long j10) {
        long jNanoTime = System.nanoTime() - j10;
        long j11 = jNanoTime < 0 ? 0L : jNanoTime;
        i70 i70Var = this.f28432b;
        ((FlutterJNI) i70Var.f12400b).onVsync(j11, i70Var.f12399a, this.f28431a);
        i70Var.f12401c = this;
    }
}
