[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / windowing / wayland / WinSystemWaylandEGLContextGL.h
blob540a7b817968894ed2338868ddaf37ed7a55547c
1 /*
2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "WinSystemWaylandEGLContext.h"
12 #include "rendering/gl/RenderSystemGL.h"
14 namespace KODI
16 namespace WINDOWING
18 namespace WAYLAND
21 class CVaapiProxy;
23 class CWinSystemWaylandEGLContextGL : public CWinSystemWaylandEGLContext, public CRenderSystemGL
25 public:
26 static void Register();
27 static std::unique_ptr<CWinSystemBase> CreateWinSystem();
29 // Implementation of CWinSystemBase via CWinSystemWaylandEGLContext
30 CRenderSystemBase *GetRenderSystem() override { return this; }
31 bool InitWindowSystem() override;
33 protected:
34 bool CreateContext() override;
35 void SetContextSize(CSizeInt size) override;
36 void SetVSyncImpl(bool enable) override;
37 void PresentRenderImpl(bool rendered) override;
38 struct delete_CVaapiProxy
40 void operator()(CVaapiProxy *p) const;
42 std::unique_ptr<CVaapiProxy, delete_CVaapiProxy> m_vaapiProxy;