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.
11 #include "WinSystemWaylandEGLContext.h"
12 #include "rendering/gl/RenderSystemGL.h"
23 class CWinSystemWaylandEGLContextGL
: public CWinSystemWaylandEGLContext
, public CRenderSystemGL
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
;
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
;