Drop SceneOpenGL::Window::textureForType

Dead code.
icc-effect-5.14.5
Martin Gräßlin 2014-07-21 15:04:44 +02:00
parent 6ad4c775d7
commit 7744608a1d
2 changed files with 0 additions and 38 deletions

View File

@ -1116,36 +1116,6 @@ void SceneOpenGL::Window::renderQuads(int, const QRegion& region, const WindowQu
vbo->render(region, primitiveType, m_hardwareClipping);
}
GLTexture *SceneOpenGL::Window::textureForType(SceneOpenGL::Window::TextureType type)
{
GLTexture *tex = NULL;
OpenGLPaintRedirector *redirector = NULL;
if (type != Content && type != Shadow) {
if (toplevel->isClient()) {
Client *client = static_cast<Client*>(toplevel);
redirector = static_cast<OpenGLPaintRedirector*>(client->decorationPaintRedirector());
} else if (toplevel->isDeleted()) {
Deleted *deleted = static_cast<Deleted*>(toplevel);
redirector = static_cast<OpenGLPaintRedirector*>(deleted->decorationPaintRedirector());
}
}
switch(type) {
case Content:
tex = s_frameTexture;
break;
case Decoration:
tex = redirector ? redirector->decorationTexture() : 0;
break;
case Shadow:
tex = static_cast<SceneOpenGLShadow*>(m_shadow)->shadowTexture();
}
return tex;
}
WindowPixmap* SceneOpenGL::Window::createWindowPixmap()
{
return new OpenGLWindowPixmap(this, m_scene);

View File

@ -233,14 +233,6 @@ protected:
**/
virtual void restoreStates(TextureType type, qreal opacity, qreal brightness, qreal saturation) = 0;
/**
* @brief Returns the texture for the given @p type.
*
* @param type The Texture Type for which the texture should be retrieved
* @return :GLTexture* the texture
**/
GLTexture *textureForType(TextureType type);
void paintDecorations(const WindowPaintData &data, const QRegion &region);
protected: