plugins/screencast: Drop ScreenCastSource::hasAlphaChannel()
It's mainly unused.
This commit is contained in:
parent
c3c3b903b1
commit
17c857ce66
7 changed files with 1 additions and 20 deletions
|
@ -36,11 +36,6 @@ OutputScreenCastSource::~OutputScreenCastSource()
|
|||
pause();
|
||||
}
|
||||
|
||||
bool OutputScreenCastSource::hasAlphaChannel() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
quint32 OutputScreenCastSource::drmFormat() const
|
||||
{
|
||||
return DRM_FORMAT_ARGB8888;
|
||||
|
|
|
@ -24,7 +24,6 @@ public:
|
|||
~OutputScreenCastSource() override;
|
||||
|
||||
uint refreshRate() const override;
|
||||
bool hasAlphaChannel() const override;
|
||||
QSize textureSize() const override;
|
||||
quint32 drmFormat() const override;
|
||||
|
||||
|
|
|
@ -60,11 +60,6 @@ QSize RegionScreenCastSource::textureSize() const
|
|||
return m_region.size() * m_scale;
|
||||
}
|
||||
|
||||
bool RegionScreenCastSource::hasAlphaChannel() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
quint32 RegionScreenCastSource::drmFormat() const
|
||||
{
|
||||
return DRM_FORMAT_ARGB8888;
|
||||
|
|
|
@ -38,7 +38,6 @@ public:
|
|||
~RegionScreenCastSource() override;
|
||||
|
||||
quint32 drmFormat() const override;
|
||||
bool hasAlphaChannel() const override;
|
||||
QSize textureSize() const override;
|
||||
uint refreshRate() const override;
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ public:
|
|||
explicit ScreenCastSource(QObject *parent = nullptr);
|
||||
|
||||
virtual uint refreshRate() const = 0;
|
||||
virtual bool hasAlphaChannel() const = 0;
|
||||
virtual quint32 drmFormat() const = 0;
|
||||
virtual QSize textureSize() const = 0;
|
||||
|
||||
|
|
|
@ -46,11 +46,6 @@ quint32 WindowScreenCastSource::drmFormat() const
|
|||
return DRM_FORMAT_ARGB8888;
|
||||
}
|
||||
|
||||
bool WindowScreenCastSource::hasAlphaChannel() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
QSize WindowScreenCastSource::textureSize() const
|
||||
{
|
||||
return m_window->clientGeometry().size().toSize();
|
||||
|
@ -58,7 +53,7 @@ QSize WindowScreenCastSource::textureSize() const
|
|||
|
||||
void WindowScreenCastSource::render(QImage *target)
|
||||
{
|
||||
const auto offscreenTexture = GLTexture::allocate(hasAlphaChannel() ? GL_RGBA8 : GL_RGB8, textureSize());
|
||||
const auto offscreenTexture = GLTexture::allocate(GL_RGBA8, textureSize());
|
||||
if (!offscreenTexture) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@ public:
|
|||
~WindowScreenCastSource() override;
|
||||
|
||||
quint32 drmFormat() const override;
|
||||
bool hasAlphaChannel() const override;
|
||||
QSize textureSize() const override;
|
||||
uint refreshRate() const override;
|
||||
|
||||
|
|
Loading…
Reference in a new issue