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 "cores/GameSettings.h"
12 #include "cores/RetroPlayer/RetroPlayerTypes.h"
13 #include "threads/CriticalSection.h"
22 class IRendererFactory
;
23 class IRenderBufferPools
;
25 class CRenderBufferManager
28 CRenderBufferManager() = default;
29 ~CRenderBufferManager();
31 void RegisterPools(IRendererFactory
* factory
, RenderBufferPoolVector pools
);
32 RenderBufferPoolVector
GetPools(IRendererFactory
* factory
);
33 std::vector
<IRenderBufferPool
*> GetBufferPools();
36 std::string
GetRenderSystemName(IRenderBufferPool
* renderBufferPool
) const;
38 bool HasScalingMethod(SCALINGMETHOD scalingMethod
) const;
41 struct RenderBufferPools
43 IRendererFactory
* factory
;
44 RenderBufferPoolVector pools
;
47 std::vector
<RenderBufferPools
> m_pools
;
48 mutable CCriticalSection m_critSection
;