blob: 822af9f621e78a14c78507a7a9f1e2acfce0c1df (
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
39
40
|
/*
* 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 CDRMLegacy : public CDRMUtils
{
public:
CDRMLegacy() = default;
~CDRMLegacy() { DestroyDrm(); };
virtual void FlipPage(struct gbm_bo *bo, bool rendered, bool videoLayer) override;
virtual bool SetVideoMode(const RESOLUTION_INFO& res, struct gbm_bo *bo) override;
virtual bool SetActive(bool active) override;
virtual bool InitDrm() override;
virtual bool SetProperty(struct drm_object *object, const char *name, uint64_t value) override;
private:
bool WaitingForFlip();
bool QueueFlip(struct gbm_bo *bo);
static void PageFlipHandler(int fd, unsigned int frame, unsigned int sec,
unsigned int usec, void *data);
};
}
}
}
|