backends/virtual: Drop VirtualBackend::captureOutput()

It's unused. Bring it back when there are usecases.
This commit is contained in:
Vlad Zahorodnii 2022-10-23 12:08:42 +03:00
parent 6b253074f3
commit b18c6a4c52
2 changed files with 0 additions and 13 deletions

View file

@ -8,7 +8,6 @@
*/
#include "virtual_backend.h"
#include "composite.h"
#include "virtual_egl_backend.h"
#include "virtual_output.h"
#include "virtual_qpainter_backend.h"
@ -106,14 +105,4 @@ void VirtualBackend::setVirtualOutputs(int count, QVector<QRect> geometries, QVe
Q_EMIT outputsQueried();
}
QImage VirtualBackend::captureOutput(Output *output) const
{
if (auto backend = qobject_cast<VirtualQPainterBackend *>(Compositor::self()->backend())) {
if (auto layer = backend->primaryLayer(output)) {
return *layer->image();
}
}
return QImage();
}
} // namespace KWin

View file

@ -50,8 +50,6 @@ public:
return QVector<CompositingType>{OpenGLCompositing, QPainterCompositing};
}
Q_INVOKABLE QImage captureOutput(Output *output) const;
Q_SIGNALS:
void virtualOutputsSet(bool countChanged);