package io.flutter.embedding.engine.systemchannels;

import java.nio.ByteBuffer;

/* JADX INFO: loaded from: classes.dex */
public class PlatformViewCreationRequest {
    public final int direction;
    public final RequestedDisplayMode displayMode;
    public final double logicalHeight;
    public final double logicalLeft;
    public final double logicalTop;
    public final double logicalWidth;
    public final ByteBuffer params;
    public final int viewId;
    public final String viewType;

    public enum RequestedDisplayMode {
        TEXTURE_WITH_VIRTUAL_FALLBACK,
        TEXTURE_WITH_HYBRID_FALLBACK,
        HYBRID_ONLY
    }

    public PlatformViewCreationRequest(int i, String str, double d3, double d6, double d7, double d8, int i5, ByteBuffer byteBuffer) {
        this(i, str, d3, d6, d7, d8, i5, RequestedDisplayMode.TEXTURE_WITH_VIRTUAL_FALLBACK, byteBuffer);
    }

    public static PlatformViewCreationRequest createHCPPRequest(int i, String str, int i5, ByteBuffer byteBuffer) {
        return new PlatformViewCreationRequest(i, str, 0.0d, 0.0d, 0.0d, 0.0d, i5, null, byteBuffer);
    }

    public static PlatformViewCreationRequest createHybridCompositionRequest(int i, String str, int i5, ByteBuffer byteBuffer) {
        return new PlatformViewCreationRequest(i, str, 0.0d, 0.0d, 0.0d, 0.0d, i5, RequestedDisplayMode.HYBRID_ONLY, byteBuffer);
    }

    public static PlatformViewCreationRequest createTLHCWithFallbackRequest(int i, String str, double d3, double d6, double d7, double d8, int i5, boolean z5, ByteBuffer byteBuffer) {
        return new PlatformViewCreationRequest(i, str, d3, d6, d7, d8, i5, z5 ? RequestedDisplayMode.TEXTURE_WITH_HYBRID_FALLBACK : RequestedDisplayMode.TEXTURE_WITH_VIRTUAL_FALLBACK, byteBuffer);
    }

    public PlatformViewCreationRequest(int i, String str, double d3, double d6, double d7, double d8, int i5, RequestedDisplayMode requestedDisplayMode, ByteBuffer byteBuffer) {
        this.viewId = i;
        this.viewType = str;
        this.logicalTop = d3;
        this.logicalLeft = d6;
        this.logicalWidth = d7;
        this.logicalHeight = d8;
        this.direction = i5;
        this.displayMode = requestedDisplayMode;
        this.params = byteBuffer;
    }
}
