// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Qt-Security score:significant reason:default

#ifndef QEGLFSVIVINTEGRATION_H
#define QEGLFSVIVINTEGRATION_H

#include "private/qeglfsdeviceintegration_p.h"
#include "EGL/eglext_REL.h"

QT_BEGIN_NAMESPACE

class QEglFSRcarIntegration : public QEglFSDeviceIntegration
{
public:
    void platformInit() override;
    QSize screenSize() const override;
    EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) override;
    void destroyNativeWindow(EGLNativeWindowType window) override;
    EGLNativeDisplayType platformDisplay() const override;

private:
    QSize mScreenSize;
    EGLNativeDisplayType mNativeDisplay;
    EGLNativeWindowTypeREL *mNativeWindow;
    int mNativeDisplayID;
};

QT_END_NAMESPACE

#endif
