[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / windowing / gbm / WinSystemGbmGLContext.h
blob8994ce6111bee4e5c07fa9a7e637f539077e19fb
1 /*
2 * Copyright (C) 2005-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 "WinSystemGbmEGLContext.h"
12 #include "rendering/gl/RenderSystemGL.h"
13 #include "utils/EGLUtils.h"
15 #include <memory>
17 class CVaapiProxy;
19 namespace KODI
21 namespace WINDOWING
23 namespace GBM
26 class CWinSystemGbmGLContext : public CWinSystemGbmEGLContext, public CRenderSystemGL
28 public:
29 CWinSystemGbmGLContext();
30 ~CWinSystemGbmGLContext() override = default;
32 static void Register();
33 static std::unique_ptr<CWinSystemBase> CreateWinSystem();
35 // Implementation of CWinSystemBase via CWinSystemGbm
36 CRenderSystemBase *GetRenderSystem() override { return this; }
37 bool InitWindowSystem() override;
38 bool SetFullScreen(bool fullScreen, RESOLUTION_INFO& res, bool blankOtherDisplays) override;
39 void PresentRender(bool rendered, bool videoLayer) override;
40 protected:
41 void SetVSyncImpl(bool enable) override {}
42 void PresentRenderImpl(bool rendered) override {};
43 bool CreateContext() override;