Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
53796aac
Commit
53796aac
authored
Apr 01, 2021
by
Vlad Zahorodnii
Browse files
platforms/drm: Remove unused parameter in DrmCrtc constructor
parent
d883cccf
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/platforms/drm/drm_gpu.cpp
View file @
53796aac
...
...
@@ -171,7 +171,7 @@ bool DrmGpu::updateOutputs()
const
uint32_t
currentCrtc
=
resources
->
crtcs
[
i
];
auto
it
=
std
::
find_if
(
m_crtcs
.
constBegin
(),
m_crtcs
.
constEnd
(),
[
currentCrtc
]
(
DrmCrtc
*
c
)
{
return
c
->
id
()
==
currentCrtc
;
});
if
(
it
==
m_crtcs
.
constEnd
())
{
auto
c
=
new
DrmCrtc
(
this
,
currentCrtc
,
m_backend
,
i
);
auto
c
=
new
DrmCrtc
(
this
,
currentCrtc
,
i
);
if
(
!
c
->
init
())
{
delete
c
;
continue
;
...
...
src/plugins/platforms/drm/drm_object_crtc.cpp
View file @
53796aac
...
...
@@ -17,11 +17,10 @@
namespace
KWin
{
DrmCrtc
::
DrmCrtc
(
DrmGpu
*
gpu
,
uint32_t
crtcId
,
DrmBackend
*
backend
,
int
resIndex
)
:
DrmObject
(
gpu
,
crtc
_i
d
)
DrmCrtc
::
DrmCrtc
(
DrmGpu
*
gpu
,
uint32_t
crtcId
,
int
resIndex
)
:
DrmObject
(
gpu
,
crtc
I
d
)
,
m_crtc
(
drmModeGetCrtc
(
gpu
->
fd
(),
crtcId
))
,
m_resIndex
(
resIndex
)
,
m_backend
(
backend
)
{
}
...
...
src/plugins/platforms/drm/drm_object_crtc.h
View file @
53796aac
...
...
@@ -25,7 +25,7 @@ class DrmGpu;
class
DrmCrtc
:
public
DrmObject
{
public:
DrmCrtc
(
DrmGpu
*
gpu
,
uint32_t
crtcId
,
DrmBackend
*
backend
,
int
resIndex
);
DrmCrtc
(
DrmGpu
*
gpu
,
uint32_t
crtcId
,
int
resIndex
);
bool
init
()
override
;
...
...
@@ -64,7 +64,6 @@ private:
QSharedPointer
<
DrmBuffer
>
m_currentBuffer
;
QSharedPointer
<
DrmBuffer
>
m_nextBuffer
;
DrmDumbBuffer
*
m_blackBuffer
=
nullptr
;
DrmBackend
*
m_backend
;
};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment