presentation: move to unique ptrs
less refcounting, move by rvalue.
This commit is contained in:
parent
f22b5971d1
commit
bcb96c5532
5 changed files with 35 additions and 26 deletions
|
|
@ -146,10 +146,10 @@ CHyprRenderer::CHyprRenderer() {
|
|||
continue;
|
||||
|
||||
w->m_wlSurface->resource()->frame(Time::steadyNow());
|
||||
auto FEEDBACK = makeShared<CQueuedPresentationData>(w->m_wlSurface->resource());
|
||||
auto FEEDBACK = makeUnique<CQueuedPresentationData>(w->m_wlSurface->resource());
|
||||
FEEDBACK->attachMonitor(g_pCompositor->m_lastMonitor.lock());
|
||||
FEEDBACK->discarded();
|
||||
PROTO::presentation->queueData(FEEDBACK);
|
||||
PROTO::presentation->queueData(std::move(FEEDBACK));
|
||||
}
|
||||
|
||||
if (dirty)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue