Allow presenting a DrmBuffer on a dedicated DrmOutput
This commit is contained in:
parent
fcc895180b
commit
600b3cd2c1
2 changed files with 7 additions and 1 deletions
|
@ -255,7 +255,12 @@ void DrmBackend::present(DrmBuffer *buffer)
|
|||
return;
|
||||
}
|
||||
// TODO: correct output
|
||||
if (m_outputs.first()->present(buffer)) {
|
||||
present(buffer, m_outputs.first());
|
||||
}
|
||||
|
||||
void DrmBackend::present(DrmBuffer *buffer, DrmOutput *output)
|
||||
{
|
||||
if (output->present(buffer)) {
|
||||
m_pageFlipsPending++;
|
||||
if (m_pageFlipsPending == 1 && Compositor::self()) {
|
||||
Compositor::self()->aboutToSwapBuffers();
|
||||
|
|
|
@ -53,6 +53,7 @@ public:
|
|||
DrmBuffer *createBuffer(const QSize &size);
|
||||
DrmBuffer *createBuffer(gbm_surface *surface);
|
||||
void present(DrmBuffer *buffer);
|
||||
void present(DrmBuffer *buffer, DrmOutput *output);
|
||||
|
||||
QSize size() const;
|
||||
int fd() const {
|
||||
|
|
Loading…
Reference in a new issue