what-the-bank/sources/com/airbnb/lottie/RenderMode.java

43 lines
1.3 KiB
Java

package com.airbnb.lottie;
/* loaded from: classes.dex */
public enum RenderMode {
AUTOMATIC,
HARDWARE,
SOFTWARE;
/* renamed from: com.airbnb.lottie.RenderMode$1, reason: invalid class name */
/* loaded from: classes.dex */
static /* synthetic */ class AnonymousClass1 {
static final int[] $SwitchMap$com$airbnb$lottie$RenderMode;
static {
int[] iArr = new int[RenderMode.values().length];
$SwitchMap$com$airbnb$lottie$RenderMode = iArr;
try {
iArr[RenderMode.HARDWARE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
$SwitchMap$com$airbnb$lottie$RenderMode[RenderMode.SOFTWARE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
$SwitchMap$com$airbnb$lottie$RenderMode[RenderMode.AUTOMATIC.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
public final boolean useSoftwareRendering(int i, boolean z, int i2) {
int i3 = AnonymousClass1.$SwitchMap$com$airbnb$lottie$RenderMode[ordinal()];
if (i3 == 1) {
return false;
}
if (i3 != 2) {
return (z && i < 28) || i2 > 4 || i <= 25;
}
return true;
}
}