Commit a2c76580 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Drop Screens::supportsTransformations

It's used nowhere.
parent 58ae454f
......@@ -1049,17 +1049,6 @@ bool DrmOutput::atomicReqModesetPopulate(drmModeAtomicReq *req, bool enable)
return ret;
}
bool DrmOutput::supportsTransformations() const
{
if (!m_primaryPlane) {
return false;
}
const auto transformations = m_primaryPlane->supportedTransformations();
return transformations.testFlag(DrmPlane::Transformation::Rotate90)
|| transformations.testFlag(DrmPlane::Transformation::Rotate180)
|| transformations.testFlag(DrmPlane::Transformation::Rotate270);
}
int DrmOutput::gammaRampSize() const
{
return m_crtc->gammaRampSize();
......
......@@ -83,8 +83,6 @@ public:
bool initCursor(const QSize &cursorSize);
bool supportsTransformations() const;
/**
* Drm planes might be capable of realizing the current output transform without usage
* of compositing. This is a getter to query the current state of that
......
......@@ -8,14 +8,12 @@
*/
#include "screens_drm.h"
#include "drm_backend.h"
#include "drm_output.h"
namespace KWin
{
DrmScreens::DrmScreens(DrmBackend *backend, QObject *parent)
: OutputScreens(backend, parent)
, m_backend(backend)
{
connect(backend, &DrmBackend::screensQueried, this, &DrmScreens::updateCount);
connect(backend, &DrmBackend::screensQueried, this, &DrmScreens::changed);
......@@ -23,13 +21,4 @@ DrmScreens::DrmScreens(DrmBackend *backend, QObject *parent)
DrmScreens::~DrmScreens() = default;
bool DrmScreens::supportsTransformations(int screen) const
{
const auto enOuts = m_backend->drmEnabledOutputs();
if (screen >= enOuts.size()) {
return false;
}
return enOuts.at(screen)->supportsTransformations();
}
}
......@@ -20,10 +20,6 @@ class DrmScreens : public OutputScreens
public:
DrmScreens(DrmBackend *backend, QObject *parent = nullptr);
~DrmScreens() override;
bool supportsTransformations(int screen) const override;
DrmBackend *m_backend;
};
}
......
......@@ -201,12 +201,6 @@ bool Screens::isInternal(int screen) const
return false;
}
bool Screens::supportsTransformations(int screen) const
{
Q_UNUSED(screen)
return false;
}
Qt::ScreenOrientation Screens::orientation(int screen) const
{
Q_UNUSED(screen)
......
......@@ -127,12 +127,6 @@ public:
*/
virtual bool isInternal(int screen) const;
/**
* @returns @c true if the @p screen can be rotated.
* Default implementation returns @c false
*/
virtual bool supportsTransformations(int screen) const;
virtual Qt::ScreenOrientation orientation(int screen) const;
int physicalDpiX(int screen) const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment