Skip to content
GitLab
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
458ea6dc
Commit
458ea6dc
authored
Oct 29, 2020
by
Vlad Zahorodnii
Browse files
platforms/wayland: Enable buffer age for all outputs
parent
ac203818
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/platforms/wayland/egl_wayland_backend.cpp
View file @
458ea6dc
...
...
@@ -400,7 +400,7 @@ void EglWaylandBackend::endRenderingFrameForScreen(int screenId, const QRegion &
{
EglWaylandOutput
*
output
=
m_outputs
[
screenId
];
QRegion
damage
=
damagedRegion
.
intersected
(
output
->
m_waylandOutput
->
geometry
());
if
(
damage
.
isEmpty
()
&&
screenId
==
0
)
{
if
(
damage
.
isEmpty
())
{
// If the damaged region of a window is fully occluded, the only
// rendering done, if any, will have been to repair a reused back
...
...
@@ -413,17 +413,12 @@ void EglWaylandBackend::endRenderingFrameForScreen(int screenId, const QRegion &
glFlush
();
}
for
(
auto
*
o
:
qAsConst
(
m_outputs
))
{
o
->
m_bufferAge
=
1
;
}
output
->
m_bufferAge
=
1
;
return
;
}
presentOnSurface
(
output
,
damage
);
// Save the damaged region to history
// Note: damage history is only collected for the first screen. See EglGbmBackend
// for mor information regarding this limitation.
if
(
supportsBufferAge
()
&&
screenId
==
0
)
{
if
(
supportsBufferAge
())
{
if
(
output
->
m_damageHistory
.
count
()
>
10
)
{
output
->
m_damageHistory
.
removeLast
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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