backends/virtual: Drop VirtualBackend::captureOutput()
It's unused. Bring it back when there are usecases.
This commit is contained in:
parent
6b253074f3
commit
b18c6a4c52
2 changed files with 0 additions and 13 deletions
|
@ -8,7 +8,6 @@
|
||||||
*/
|
*/
|
||||||
#include "virtual_backend.h"
|
#include "virtual_backend.h"
|
||||||
|
|
||||||
#include "composite.h"
|
|
||||||
#include "virtual_egl_backend.h"
|
#include "virtual_egl_backend.h"
|
||||||
#include "virtual_output.h"
|
#include "virtual_output.h"
|
||||||
#include "virtual_qpainter_backend.h"
|
#include "virtual_qpainter_backend.h"
|
||||||
|
@ -106,14 +105,4 @@ void VirtualBackend::setVirtualOutputs(int count, QVector<QRect> geometries, QVe
|
||||||
Q_EMIT outputsQueried();
|
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
|
} // namespace KWin
|
||||||
|
|
|
@ -50,8 +50,6 @@ public:
|
||||||
return QVector<CompositingType>{OpenGLCompositing, QPainterCompositing};
|
return QVector<CompositingType>{OpenGLCompositing, QPainterCompositing};
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_INVOKABLE QImage captureOutput(Output *output) const;
|
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void virtualOutputsSet(bool countChanged);
|
void virtualOutputsSet(bool countChanged);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue