blob: 4270d4ecb242133680b691aff3fa34ae1ef436db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*
* Copyright (C) 2005-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "DRMUtils.h"
namespace KODI
{
namespace WINDOWING
{
namespace GBM
{
class COffScreenModeSetting : public CDRMUtils
{
public:
COffScreenModeSetting() = default;
~COffScreenModeSetting() override = default;
void FlipPage(struct gbm_bo *bo, bool rendered, bool videoLayer) override {}
bool SetVideoMode(const RESOLUTION_INFO& res, struct gbm_bo *bo) override { return false; }
bool SetActive(bool active) override { return false; }
bool InitDrm() override;
void DestroyDrm() override {}
RESOLUTION_INFO GetCurrentMode() override;
std::vector<RESOLUTION_INFO> GetModes() override;
bool SetMode(const RESOLUTION_INFO& res) override { return true; }
};
}
}
}
|