mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 00:22:50 -06:00
43 lines
1.3 KiB
Java
43 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;
|
||
|
}
|
||
|
}
|