Rabbit-R1/switch port/java/sources/com/airbnb/lottie/RenderMode.java

43 lines
1.3 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package com.airbnb.lottie;
/* loaded from: classes2.dex */
public enum RenderMode {
AUTOMATIC,
HARDWARE,
SOFTWARE;
/* renamed from: com.airbnb.lottie.RenderMode$1, reason: invalid class name */
/* loaded from: classes2.dex */
static /* synthetic */ class AnonymousClass1 {
static final /* synthetic */ 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 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;
}
}