platforms/drm: Minor coding style fixes
This reformats some code according to the KF coding style.
This commit is contained in:
parent
7926fce598
commit
d883cccfd3
9 changed files with 23 additions and 17 deletions
|
@ -36,7 +36,13 @@
|
|||
namespace KWin
|
||||
{
|
||||
|
||||
DrmGpu::DrmGpu(DrmBackend *backend, QByteArray devNode, int fd, int drmId) : m_backend(backend), m_devNode(devNode), m_fd(fd), m_drmId(drmId), m_atomicModeSetting(false), m_gbmDevice(nullptr)
|
||||
DrmGpu::DrmGpu(DrmBackend *backend, QByteArray devNode, int fd, int drmId)
|
||||
: m_backend(backend)
|
||||
, m_devNode(devNode)
|
||||
, m_fd(fd)
|
||||
, m_drmId(drmId)
|
||||
, m_atomicModeSetting(false)
|
||||
, m_gbmDevice(nullptr)
|
||||
{
|
||||
uint64_t capability = 0;
|
||||
|
||||
|
|
|
@ -19,9 +19,9 @@ namespace KWin
|
|||
* Definitions for class DrmObject
|
||||
*/
|
||||
|
||||
DrmObject::DrmObject(DrmGpu *gpu, uint32_t object_id)
|
||||
DrmObject::DrmObject(DrmGpu *gpu, uint32_t objectId)
|
||||
: m_gpu(gpu)
|
||||
, m_id(object_id)
|
||||
, m_id(objectId)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
* @param object_id provided by the kernel
|
||||
* @param fd of the DRM device
|
||||
*/
|
||||
DrmObject(DrmGpu *gpu, uint32_t object_id);
|
||||
DrmObject(DrmGpu *gpu, uint32_t objectId);
|
||||
virtual ~DrmObject();
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
namespace KWin
|
||||
{
|
||||
|
||||
DrmConnector::DrmConnector(DrmGpu *gpu, uint32_t connector_id)
|
||||
: DrmObject(gpu, connector_id)
|
||||
, m_conn(drmModeGetConnector(gpu->fd(), connector_id))
|
||||
DrmConnector::DrmConnector(DrmGpu *gpu, uint32_t connectorId)
|
||||
: DrmObject(gpu, connectorId)
|
||||
, m_conn(drmModeGetConnector(gpu->fd(), connectorId))
|
||||
{
|
||||
for (int i = 0; i < m_conn->count_encoders; ++i) {
|
||||
m_encoders << m_conn->encoders[i];
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace KWin
|
|||
class DrmConnector : public DrmObject
|
||||
{
|
||||
public:
|
||||
DrmConnector(DrmGpu *gpu, uint32_t connector_id);
|
||||
DrmConnector(DrmGpu *gpu, uint32_t connectorId);
|
||||
~DrmConnector() override;
|
||||
|
||||
bool init() override;
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
namespace KWin
|
||||
{
|
||||
|
||||
DrmCrtc::DrmCrtc(DrmGpu *gpu, uint32_t crtc_id, DrmBackend *backend, int resIndex)
|
||||
: DrmObject(gpu, crtc_id),
|
||||
m_crtc(drmModeGetCrtc(gpu->fd(), crtc_id)),
|
||||
m_resIndex(resIndex),
|
||||
m_backend(backend)
|
||||
DrmCrtc::DrmCrtc(DrmGpu *gpu, uint32_t crtcId, DrmBackend *backend, int resIndex)
|
||||
: DrmObject(gpu, crtc_id)
|
||||
, m_crtc(drmModeGetCrtc(gpu->fd(), crtcId))
|
||||
, m_resIndex(resIndex)
|
||||
, m_backend(backend)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ class DrmGpu;
|
|||
class DrmCrtc : public DrmObject
|
||||
{
|
||||
public:
|
||||
DrmCrtc(DrmGpu *gpu, uint32_t crtc_id, DrmBackend *backend, int resIndex);
|
||||
DrmCrtc(DrmGpu *gpu, uint32_t crtcId, DrmBackend *backend, int resIndex);
|
||||
|
||||
bool init() override;
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
namespace KWin
|
||||
{
|
||||
|
||||
DrmPlane::DrmPlane(DrmGpu *gpu, uint32_t plane_id)
|
||||
: DrmObject(gpu, plane_id)
|
||||
DrmPlane::DrmPlane(DrmGpu *gpu, uint32_t planeId)
|
||||
: DrmObject(gpu, planeId)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ class DrmPlane : public DrmObject
|
|||
{
|
||||
Q_GADGET
|
||||
public:
|
||||
DrmPlane(DrmGpu *gpu, uint32_t plane_id);
|
||||
DrmPlane(DrmGpu *gpu, uint32_t planeId);
|
||||
|
||||
enum class PropertyIndex : uint32_t {
|
||||
Type = 0,
|
||||
|
|
Loading…
Reference in a new issue