package com.google.android.gms.internal.ads;

import android.graphics.SurfaceTexture;
import java.util.concurrent.TimeUnit;

/* JADX INFO: loaded from: classes2.dex */
public final class w30 {

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final long f17854a = TimeUnit.MILLISECONDS.toNanos(((Long) n7.y.f31093e.f31096c.b(ao.f8829e0)).longValue());

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f17856c = true;

    public final void a(SurfaceTexture surfaceTexture, q30 q30Var) {
        if (q30Var == null) {
            return;
        }
        long timestamp = surfaceTexture.getTimestamp();
        if (!this.f17856c) {
            long j10 = timestamp - this.f17855b;
            if (Math.abs(j10) < this.f17854a) {
                return;
            }
        }
        this.f17856c = false;
        this.f17855b = timestamp;
        p7.r0.f31763l.post(new mv1(q30Var, 21));
    }
}
