mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-24 08:02:37 -06:00
42 lines
1.3 KiB
Java
42 lines
1.3 KiB
Java
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;
|
|
}
|
|
}
|